@kolkrabbi/kol-shell 0.99.0 → 0.99.1

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.99.0",
3
+ "version": "0.99.1",
4
4
  "private": false,
5
5
  "description": "The application shell",
6
6
  "license": "MIT",
@@ -21,7 +21,7 @@
21
21
  "react-dom": "^18.3.0 || ^19.0.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@kolkrabbi/kol-component": "^0.331.0",
24
+ "@kolkrabbi/kol-component": "^0.332.0",
25
25
  "@kolkrabbi/kol-framework": "^0.69.0",
26
26
  "@kolkrabbi/kol-icons": "^0.60.0",
27
27
  "@kolkrabbi/kol-theme": "^0.210.0"
@@ -147,7 +147,7 @@ function FloatNav({ items = [], currentPath = '/', onNavigate, actions = [], sha
147
147
  const before = moreRows.filter((i) => !i.foot)
148
148
  const after = moreRows.filter((i) => i.foot)
149
149
  const active = activePath(items, currentPath)
150
- const value = open || inMore.some((i) => i.path === active) ? MORE : active
150
+ const value = open || inMore.some((i) => i.path != null && i.path === active) ? MORE : active
151
151
 
152
152
  const key = (i) => i.path ?? i.id ?? i.label
153
153
  const tabs = inBar.map((i) => ({ value: key(i), label: i.label, icon: i.icon, selected: sub === key(i) || (i.selected ?? (moreKeepsOpen ? key(i) === active : undefined)) }))
package/src/MoreSheet.jsx CHANGED
@@ -63,7 +63,7 @@ export default function MoreRows({ actions = [], items = [], active, onPick, ite
63
63
  size="lg"
64
64
  iconLeft={i.icon}
65
65
  iconSize={glyph}
66
- aria-current={i.path === active ? 'page' : undefined}
66
+ aria-current={i.path != null && i.path === active ? 'page' : undefined}
67
67
  className={rowCls}
68
68
  onClick={() => onPick?.(i)}
69
69
  >