@kolkrabbi/kol-shell 0.116.0 → 0.118.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 +6 -6
- package/src/AppHub.jsx +2 -2
- package/src/CanvasReadouts.jsx +5 -5
- package/src/DocumentCapsule.jsx +2 -2
- package/src/MenuBar.jsx +3 -3
- package/src/MoreSheet.jsx +3 -3
- package/src/PropertyRail.jsx +4 -4
- package/src/RailFlyout.jsx +2 -2
- package/src/ReaderBar.jsx +1 -1
- package/src/StudioCreate.jsx +2 -2
- package/src/StudioDetail.jsx +4 -2
- package/src/ToolRail.jsx +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-shell",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.118.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The application shell",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"@kolkrabbi/kol-component": ">=0.349.0",
|
|
16
16
|
"@kolkrabbi/kol-framework": ">=0.55.0",
|
|
17
|
-
"@kolkrabbi/kol-icons": ">=0.
|
|
17
|
+
"@kolkrabbi/kol-icons": ">=0.68.0",
|
|
18
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-component": "^0.
|
|
25
|
-
"@kolkrabbi/kol-
|
|
26
|
-
"@kolkrabbi/kol-
|
|
27
|
-
"@kolkrabbi/kol-
|
|
24
|
+
"@kolkrabbi/kol-component": "^0.355.0",
|
|
25
|
+
"@kolkrabbi/kol-icons": "^0.68.0",
|
|
26
|
+
"@kolkrabbi/kol-theme": "^0.216.1",
|
|
27
|
+
"@kolkrabbi/kol-framework": "^0.74.0"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
30
|
"src",
|
package/src/AppHub.jsx
CHANGED
|
@@ -7,7 +7,7 @@ import HubSettings from './HubSettings.jsx'
|
|
|
7
7
|
import HubSettingsRail, { hubThemeToggle } from './HubSettingsRail.jsx'
|
|
8
8
|
import HubDev from './HubDev.jsx'
|
|
9
9
|
import { warnJsx } from './warnJsx.js'
|
|
10
|
-
import {
|
|
10
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
11
11
|
import { Avatar, CommandOverlay, MediaLibrary, ModalProvider, RAIL_PRESETS, ShortcutsOverlay, railShortcuts, shortcutInScope, useModal } from '@kolkrabbi/kol-component'
|
|
12
12
|
|
|
13
13
|
/* taxonomy-ok: organism — nests AppShell / HubHome / HubSettings / HubSettingsRail / HubDev (relative) + kol-component's CommandOverlay */
|
|
@@ -365,7 +365,7 @@ function HubFrame({
|
|
|
365
365
|
const user = signIn?.signedIn ? signIn.user : null
|
|
366
366
|
const railIcon = useMemo(() => {
|
|
367
367
|
if (!user) return iconComponent
|
|
368
|
-
const Base = iconComponent ??
|
|
368
|
+
const Base = iconComponent ?? IconLoader
|
|
369
369
|
return function HubRailIcon({ name, ...rest }) {
|
|
370
370
|
if (name !== ACCOUNT_GLYPH) return <Base name={name} {...rest} />
|
|
371
371
|
return user.avatar ? <Avatar src={user.avatar} alt="" size="xs" /> : <Base name="user" {...rest} />
|
package/src/CanvasReadouts.jsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
2
2
|
|
|
3
3
|
/* taxonomy-ok: atom — readout lines on the canvas: a glyph and a float type role, no box */
|
|
4
4
|
|
|
@@ -17,11 +17,11 @@ export function ZoomReadout({ value, onMenu, onFit, className = '' }) {
|
|
|
17
17
|
<div className={`kol-zoom-readout inline-flex items-center gap-3 ${className}`.trim()}>
|
|
18
18
|
<button type="button" onClick={onMenu} aria-haspopup={onMenu ? 'menu' : undefined} className="kol-float-timecode text-oq-64 hover:text-oq-96 inline-flex items-center gap-3 bg-transparent border-0 p-0 cursor-pointer">
|
|
19
19
|
{value}
|
|
20
|
-
{onMenu && <
|
|
20
|
+
{onMenu && <IconLoader name="chevron-down" size={16} className="text-oq-64" />}
|
|
21
21
|
</button>
|
|
22
22
|
{onFit && (
|
|
23
23
|
<button type="button" onClick={onFit} aria-label="Fit" className="inline-flex text-oq-64 hover:text-oq-96 bg-transparent border-0 p-0 cursor-pointer">
|
|
24
|
-
<
|
|
24
|
+
<IconLoader name="maximize" size={16} />
|
|
25
25
|
</button>
|
|
26
26
|
)}
|
|
27
27
|
</div>
|
|
@@ -41,7 +41,7 @@ export function ZoomReadout({ value, onMenu, onFit, className = '' }) {
|
|
|
41
41
|
export function SceneBreadcrumb({ icon = 'video', name, meta, className = '' }) {
|
|
42
42
|
return (
|
|
43
43
|
<div className={`kol-scene-breadcrumb inline-flex items-center gap-3 ${className}`.trim()}>
|
|
44
|
-
<
|
|
44
|
+
<IconLoader name={icon} size={16} className="text-oq-64" />
|
|
45
45
|
<span className="kol-float-label text-oq-64">{name}</span>
|
|
46
46
|
{meta && <span className="kol-float-label text-oq-48">/</span>}
|
|
47
47
|
{meta && <span className="kol-float-ruler text-oq-48">{meta}</span>}
|
|
@@ -60,7 +60,7 @@ export function SceneBreadcrumb({ icon = 'video', name, meta, className = '' })
|
|
|
60
60
|
export function CanvasHint({ icon = 'pointer', hint, className = '' }) {
|
|
61
61
|
return (
|
|
62
62
|
<div className={`kol-canvas-hint inline-flex items-center gap-3 ${className}`.trim()}>
|
|
63
|
-
<
|
|
63
|
+
<IconLoader name={icon} size={14} className="text-oq-48" />
|
|
64
64
|
<span className="kol-float-ruler text-oq-48">{Array.isArray(hint) ? hint.join(' · ') : hint}</span>
|
|
65
65
|
</div>
|
|
66
66
|
)
|
package/src/DocumentCapsule.jsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState } from 'react'
|
|
2
2
|
import { Button, MenuTrigger, usePopover, PopoverPanel, floatSurfaceClass } from '@kolkrabbi/kol-component'
|
|
3
|
-
import {
|
|
3
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
4
4
|
import MoreRows, { FloatMenu } from './MoreSheet.jsx'
|
|
5
5
|
|
|
6
6
|
/* taxonomy-ok: molecule — a float Button, a float MenuTrigger (the name), the More sheet's rows */
|
|
@@ -45,7 +45,7 @@ export default function DocumentCapsule({ name, status, statusIcon, onBack, menu
|
|
|
45
45
|
)}
|
|
46
46
|
{status && (
|
|
47
47
|
<span className="kol-float-label text-oq-64 inline-flex items-center gap-1">
|
|
48
|
-
{statusIcon && <
|
|
48
|
+
{statusIcon && <IconLoader name={statusIcon} size={16} />}
|
|
49
49
|
{status}
|
|
50
50
|
</span>
|
|
51
51
|
)}
|
package/src/MenuBar.jsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useRef, useState } from 'react'
|
|
2
2
|
import { Menu, MenuRow, MenuDivider, MenuFlyout, MenuLabel } from '@kolkrabbi/kol-component'
|
|
3
|
-
import {
|
|
3
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
4
4
|
|
|
5
5
|
/* taxonomy-ok: organism — a row of kol-component `Menu`s with MenuRow · MenuFlyout · MenuDivider rows */
|
|
6
6
|
|
|
@@ -41,7 +41,7 @@ function Rows({ items, width }) {
|
|
|
41
41
|
const key = it.key ?? `${it.label ?? 'r'}-${i}`
|
|
42
42
|
if (it.divider) return <MenuDivider key={key} className="border-oq-08 mt-1 mb-[3px]" />
|
|
43
43
|
if (it.heading) return <MenuLabel key={key}>{it.heading}</MenuLabel>
|
|
44
|
-
const icon = it.icon && (typeof it.icon === 'string' ? <
|
|
44
|
+
const icon = it.icon && (typeof it.icon === 'string' ? <IconLoader name={it.icon} size={16} className="text-oq-88" /> : it.icon)
|
|
45
45
|
if (it.items?.length) {
|
|
46
46
|
return (
|
|
47
47
|
/* the submenu butts the list it came from: its rim on the parent's right pad (his frame — 306 beside 316) */
|
|
@@ -102,7 +102,7 @@ export default function MenuBar({ app, menus = [], end = [], variant = 'bar', cl
|
|
|
102
102
|
onPointerEnter={() => { if (open != null && open !== i) setOpen(i) }}
|
|
103
103
|
className={capsule ? CAPSULE_TRIGGER : `${TRIGGER} ${m.app ? 'font-bold' : 'font-medium'}`}>
|
|
104
104
|
{m.label}
|
|
105
|
-
{capsule && <
|
|
105
|
+
{capsule && <IconLoader name="chevron-down" size={10} className="text-oq-48" />}
|
|
106
106
|
</button>
|
|
107
107
|
)}
|
|
108
108
|
>
|
package/src/MoreSheet.jsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createContext, useContext, useEffect, useRef, useState } from 'react'
|
|
2
2
|
import { Button, ModalHeader, usePopover, PopoverPanel } from '@kolkrabbi/kol-component'
|
|
3
|
-
import {
|
|
3
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
4
4
|
|
|
5
5
|
/* the open level a row sits in (FloatMenu); null outside one, where a row's `sub` is ignored as before */
|
|
6
6
|
const Level = (globalThis[Symbol.for('@kolkrabbi/kol-shell/FloatMenuLevel')] ??= createContext(null))
|
|
@@ -47,9 +47,9 @@ export default function MoreRows({ actions = [], items = [], active, onPick, ite
|
|
|
47
47
|
aria-haspopup={nests ? 'menu' : undefined} aria-expanded={nests ? level.isOpen(a) : undefined}
|
|
48
48
|
onClick={(e) => { if (nests) { level.open(a, e.currentTarget); return } onPick?.(a); a.onPress?.() }}>
|
|
49
49
|
{a.checked !== undefined && (
|
|
50
|
-
<span className="inline-flex items-center justify-center shrink-0" style={{ width: float ? 'var(--kol-float-ic)' : 22, height: float ? 'var(--kol-float-ic)' : 22 }}>{a.checked && <
|
|
50
|
+
<span className="inline-flex items-center justify-center shrink-0" style={{ width: float ? 'var(--kol-float-ic)' : 22, height: float ? 'var(--kol-float-ic)' : 22 }}>{a.checked && <IconLoader name="check" size={22} />}</span>
|
|
51
51
|
)}
|
|
52
|
-
{nests ? <>{a.icon && <
|
|
52
|
+
{nests ? <>{a.icon && <IconLoader name={a.icon} size={glyph} />}<span className="flex-1 text-left">{a.label}</span><IconLoader name="chevron-right" size={glyph} className="shrink-0 text-oq-48" /></> : a.label}
|
|
53
53
|
</Button>
|
|
54
54
|
)
|
|
55
55
|
})}
|
package/src/PropertyRail.jsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Button, Input, Dropdown, Slider, ToggleSwitch, TabsRow, floatSurfaceClass } from '@kolkrabbi/kol-component'
|
|
2
|
-
import {
|
|
2
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
3
3
|
|
|
4
4
|
/* taxonomy-ok: organism — a float sheet of kol-component fields (Input · Dropdown · Slider · ToggleSwitch · TabsRow) */
|
|
5
5
|
|
|
@@ -49,7 +49,7 @@ export default function PropertyRail({ title, onCollapse, onExpand, density = 'r
|
|
|
49
49
|
{tabs?.length > 0 && <TabsRow variant="float" size="xs" tabs={tabs} value={tab} onChange={onTab} ariaLabel={`${title} tabs`} />}
|
|
50
50
|
{selected && (
|
|
51
51
|
<div className="flex items-center gap-2">
|
|
52
|
-
{selected.icon && <
|
|
52
|
+
{selected.icon && <IconLoader name={selected.icon} size={18} className="text-oq-64" />}
|
|
53
53
|
<span className="kol-float-panel text-emphasis flex-1 min-w-0 truncate">{selected.name}</span>
|
|
54
54
|
{selected.onVisible && (
|
|
55
55
|
<Button variant="float" tone="ghost" size="sm" iconOnly={selected.visible === false ? 'eye-off' : 'eye-on'} aria-label={selected.visible === false ? 'Show' : 'Hide'} aria-pressed={selected.visible !== false} onClick={() => selected.onVisible(selected.visible === false)} />
|
|
@@ -61,7 +61,7 @@ export default function PropertyRail({ title, onCollapse, onExpand, density = 'r
|
|
|
61
61
|
{s.collapsible ? (
|
|
62
62
|
<button type="button" aria-expanded={!!s.open} onClick={() => s.onToggle?.(!s.open)}
|
|
63
63
|
className="flex items-center gap-1.5 text-left focus-visible:outline-none focus-visible:shadow-[var(--kol-float-focus)] rounded-sm">
|
|
64
|
-
<
|
|
64
|
+
<IconLoader name="chevron-down" size={12} className={`text-oq-64 transition-transform ${s.open ? '' : '-rotate-90'}`} />
|
|
65
65
|
<span className="kol-float-panel text-emphasis flex-1 min-w-0">{s.label}</span>
|
|
66
66
|
{s.meta && <span className="kol-float-timecode text-oq-64">{s.meta}</span>}
|
|
67
67
|
</button>
|
|
@@ -122,7 +122,7 @@ function Row({ row: r, compact }) {
|
|
|
122
122
|
return (
|
|
123
123
|
<div className="flex items-center justify-between gap-2">
|
|
124
124
|
<span className="kol-float-panel text-emphasis inline-flex items-center gap-1.5">
|
|
125
|
-
{r.icon && <
|
|
125
|
+
{r.icon && <IconLoader name={r.icon} size={16} className="text-oq-96" />}
|
|
126
126
|
{r.label}
|
|
127
127
|
</span>
|
|
128
128
|
<ToggleSwitch variant="float" checked={!!r.on} onChange={r.onChange} aria-label={r.label} />
|
package/src/RailFlyout.jsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Button, usePopover, PopoverPanel, floatSurfaceClass, floatMotion } from '@kolkrabbi/kol-component'
|
|
2
|
-
import {
|
|
2
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
3
3
|
|
|
4
4
|
/* taxonomy-ok: molecule — a float card of nav Buttons with counts */
|
|
5
5
|
|
|
@@ -28,7 +28,7 @@ export default function RailFlyout({ icon, title, items = [], active, onPick, an
|
|
|
28
28
|
const card = (
|
|
29
29
|
<div role="menu" aria-label={title} className={`kol-rail-flyout kol-float-chrome flex flex-col gap-0.5 p-2 rounded-[var(--kol-float-menu-r)] ${floatSurfaceClass(surface, true)} ${anchor ? '' : className}`.trim()} style={{ width, ...(anchor ? null : floatMotion(motion).style) }}>
|
|
30
30
|
<div className="flex items-center gap-3 px-2 pt-2 pb-3">
|
|
31
|
-
{icon && <
|
|
31
|
+
{icon && <IconLoader name={icon} size={18} className="text-oq-96" />}
|
|
32
32
|
<span className="kol-float-body text-emphasis">{title}</span>
|
|
33
33
|
</div>
|
|
34
34
|
{items.map((i) => (
|
package/src/ReaderBar.jsx
CHANGED
package/src/StudioCreate.jsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useEffect, useRef, useState } from 'react'
|
|
2
2
|
import { ActionButton, AppItemMenuProvider, ContentCard, ContentFilters, ContentRow, Divider, PageHeader, SECTION_TEXT_LEVELS, CanvasStudio, IconFrame, useMediaQuery } from '@kolkrabbi/kol-component'
|
|
3
|
-
import {
|
|
3
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
4
4
|
import PageShell from './PageShell.jsx'
|
|
5
5
|
import CatalogGrid from './CatalogGrid.jsx'
|
|
6
6
|
import { warnJsx } from './warnJsx.js'
|
|
@@ -277,7 +277,7 @@ export function StudioCreateAction({ icon, label, onClick, pressed }) {
|
|
|
277
277
|
aria-pressed={pressed}
|
|
278
278
|
className={`${pressed ? 'text-oq-96' : 'text-oq-80'} hover:text-oq-96 transition-colors cursor-pointer bg-transparent border-none p-2 leading-none`}
|
|
279
279
|
>
|
|
280
|
-
<
|
|
280
|
+
<IconLoader name={icon} size={20} />
|
|
281
281
|
</button>
|
|
282
282
|
)
|
|
283
283
|
}
|
package/src/StudioDetail.jsx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useState } from 'react'
|
|
2
2
|
import { Button, Divider, SectionText, useMediaQuery } from '@kolkrabbi/kol-component'
|
|
3
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
3
4
|
import PageShell from './PageShell.jsx'
|
|
4
5
|
|
|
5
6
|
/* taxonomy-ok: organism — nests PageShell (relative) + kol-component's SectionText, Divider, Button */
|
|
@@ -66,8 +67,9 @@ export default function StudioDetail({ back, title, subtitle, description, secti
|
|
|
66
67
|
<PageShell mode={narrow ? 'scroll' : 'fixed'} className={className}>
|
|
67
68
|
<SectionText
|
|
68
69
|
level="app"
|
|
69
|
-
/*
|
|
70
|
-
|
|
70
|
+
/* Back — a text link in the eyebrow, history back; from Create it returns there, from Library to Library.
|
|
71
|
+
* The chevron is an Icon at the text's size, never a glyph character */
|
|
72
|
+
eyebrow={<span onClick={goBack} className="kol-helper-12 text-fg-48 hover:text-fg-96 cursor-pointer select-none inline-flex items-center gap-1"><IconLoader name="chevron-left" size="1em" />{back?.label ?? 'Back'}</span>}
|
|
71
73
|
headline={title}
|
|
72
74
|
body={subtitle}
|
|
73
75
|
/>
|
package/src/ToolRail.jsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState } from 'react'
|
|
2
2
|
import { Button, Tooltip, MenuPanel, MenuRow, PopoverPanel, usePopover, floatSurfaceClass } from '@kolkrabbi/kol-component'
|
|
3
|
-
import {
|
|
3
|
+
import { IconLoader } from '@kolkrabbi/kol-icons'
|
|
4
4
|
|
|
5
5
|
/* taxonomy-ok: molecule — a column of float Buttons, each named by the float Tooltip */
|
|
6
6
|
|
|
@@ -64,7 +64,7 @@ function ToolSearchPill({ onPress, kbd = '⌘K', label = 'Search', pressed }) {
|
|
|
64
64
|
<Tooltip variant="float" placement="top" offset={12} label={label} shortcut={kbd}>
|
|
65
65
|
<Button variant="float" tone="ghost" aria-label={label} pressed={pressed} onClick={onPress}
|
|
66
66
|
className={`kol-tool-search gap-2 ${kbd ? 'px-4' : 'px-2.5'} bg-[var(--kol-float-well)] [--kol-tone-fg:var(--kol-oq-96)]`}>
|
|
67
|
-
<
|
|
67
|
+
<IconLoader name="search" size="var(--kol-float-ic)" />
|
|
68
68
|
{kbd && <span className="kol-float-panel">{kbd}</span>}
|
|
69
69
|
</Button>
|
|
70
70
|
</Tooltip>
|
|
@@ -88,7 +88,7 @@ function ToolMore({ items, surface, chevron = false, label = 'More tools', onPic
|
|
|
88
88
|
{items.map((it) => (
|
|
89
89
|
<MenuRow key={it.label} rowClass="kol-menu-row kol-helper-12" kbd={it.kbd} disabled={it.disabled}
|
|
90
90
|
indicator={chevron && it.id != null && it.id === active ? 'dot' : undefined}
|
|
91
|
-
iconLeft={it.icon && <
|
|
91
|
+
iconLeft={it.icon && <IconLoader name={it.icon} size={16} className="text-oq-88" />}
|
|
92
92
|
onClick={() => { setOpen(false); onPick ? onPick(it) : it.onClick?.() }}>{it.label}</MenuRow>
|
|
93
93
|
))}
|
|
94
94
|
</MenuPanel>
|