@kolkrabbi/kol-shell 0.92.0 → 0.93.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 +4 -4
- package/src/HubHome.jsx +9 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-shell",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.93.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The application shell",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"react-dom": "^18.3.0 || ^19.0.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@kolkrabbi/kol-component": "^0.320.
|
|
24
|
+
"@kolkrabbi/kol-component": "^0.320.1",
|
|
25
25
|
"@kolkrabbi/kol-framework": "^0.65.0",
|
|
26
|
-
"@kolkrabbi/kol-
|
|
27
|
-
"@kolkrabbi/kol-
|
|
26
|
+
"@kolkrabbi/kol-icons": "^0.54.0",
|
|
27
|
+
"@kolkrabbi/kol-theme": "^0.203.0"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
30
|
"src",
|
package/src/HubHome.jsx
CHANGED
|
@@ -158,6 +158,9 @@ export default function HubHome({
|
|
|
158
158
|
signedOut,
|
|
159
159
|
stage,
|
|
160
160
|
chromes = [],
|
|
161
|
+
/* what the signed-out dock, its ··· circle, its menus and the + are made of (HubHomeFloatSurface, kol-fxr 2026-10-31 —
|
|
162
|
+
* *"we can see it first, but I think probably solid"*): AppFloatNav's `solid · glass-dark · glass-light`; solid is today's */
|
|
163
|
+
surface = 'solid',
|
|
161
164
|
signInAction,
|
|
162
165
|
/* AppHub's: the signed-in account row (HomeMenuAccountRow, kol-fxr 2026-10-29 — *"here is supposed to be user space as
|
|
163
166
|
* well"*), the menu's last row */
|
|
@@ -304,9 +307,9 @@ export default function HubHome({
|
|
|
304
307
|
)}
|
|
305
308
|
{/* the + on the phone too (Round 3: the phone had no way to sign in from Home) — top-right on the mark's line, 16 in
|
|
306
309
|
* and 24 down; its menu is the floating style (`variant="float"`, the board's menus), as the dock's sheets are */}
|
|
307
|
-
{outActions.length > 0 && <HomeMenu actions={outActions} icon="plus" variant="float" className="absolute z-10 right-4 top-6 md:right-16 md:top-16" />}
|
|
310
|
+
{outActions.length > 0 && <HomeMenu actions={outActions} icon="plus" variant="float" surface={surface} className="absolute z-10 right-4 top-6 md:right-16 md:top-16" />}
|
|
308
311
|
{/* over a stage the dock floats: the transport's shadow (HomeDockShadow, kol-fxr 2026-10-31) */}
|
|
309
|
-
{chromes.length > 0 && <AppFloatNav variant="dock" shape="pill" shadow={stage != null} items={chromes.map((c) => ({ id: c.label, label: c.label, icon: c.icon, onPress: c.onPress, sub: c.sub }))} sheetItems={dockMore} />}
|
|
312
|
+
{chromes.length > 0 && <AppFloatNav variant="dock" shape="pill" shadow={stage != null} surface={surface} items={chromes.map((c) => ({ id: c.label, label: c.label, icon: c.icon, onPress: c.onPress, sub: c.sub }))} sheetItems={dockMore} />}
|
|
310
313
|
{/* the walkthrough over the stage, where the catalog's would sit — on the mark's left line */}
|
|
311
314
|
{touring && steps.length > 0 && (
|
|
312
315
|
<div className="absolute inset-x-4 top-24 md:left-16 md:right-auto md:top-52 md:w-[560px]">
|
|
@@ -342,7 +345,7 @@ export default function HubHome({
|
|
|
342
345
|
}
|
|
343
346
|
|
|
344
347
|
/* the masthead's round button and its sheet — the catalog's VariantsButton shape, the phone More's rows */
|
|
345
|
-
function HomeMenu({ actions, icon = 'more', variant, className = '' }) {
|
|
348
|
+
function HomeMenu({ actions, icon = 'more', variant, surface = 'solid', className = '' }) {
|
|
346
349
|
const [open, setOpen] = useState(false)
|
|
347
350
|
/* the sheet opens to the LEFT of the button, top edges on one line (user 2026-10-23) — as the phone's sits beside its × */
|
|
348
351
|
const popover = usePopover({ open, onOpenChange: setOpen, placement: 'left-start', offset: 12 })
|
|
@@ -350,9 +353,10 @@ function HomeMenu({ actions, icon = 'more', variant, className = '' }) {
|
|
|
350
353
|
<div className={className}>
|
|
351
354
|
<span ref={popover.refs.setReference} {...popover.getReferenceProps()} className="inline-flex">
|
|
352
355
|
{/* `icon` — `more` on Home, `plus` signed out (frame B2), the × while its sheet is open */}
|
|
353
|
-
|
|
356
|
+
{/* solid keeps the inverted round button; a glass is the float's material, as the dock's circle (HubHomeFloatSurface) */}
|
|
357
|
+
<Button iconOnly={icon === 'more' ? 'more' : open ? 'x' : icon} size="lg" tone={surface === 'solid' ? 'inverted' : 'ghost'} radius="full" className={surface === 'solid' ? '' : floatSurfaceClass(surface)} aria-label={open ? 'Close' : 'Actions'} pressed={open} />
|
|
354
358
|
</span>
|
|
355
|
-
<PopoverPanel popover={popover} panel={false} className={`kol-more-sheet${variant === 'float' ? ` kol-more-sheet-float ${floatSurfaceClass(
|
|
359
|
+
<PopoverPanel popover={popover} panel={false} className={`kol-more-sheet${variant === 'float' ? ` kol-more-sheet-float ${floatSurfaceClass(surface, true)}` : ''}`} style={{ minWidth: 220 }}>
|
|
356
360
|
<MoreRows actions={actions} variant={variant} onPick={() => setOpen(false)} />
|
|
357
361
|
</PopoverPanel>
|
|
358
362
|
</div>
|