@nebularstreams/libmui 2.5.103 → 2.5.105

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@nebularstreams/libmui",
3
3
  "description": "Micro UI based on Mithril",
4
- "version": "2.5.103",
4
+ "version": "2.5.105",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
7
7
  "scripts": {
@@ -116,7 +116,7 @@ const
116
116
  : [],
117
117
 
118
118
  ...!themeIcon && attrs.altCurrentWidget && altIndex >= 0 && items[altIndex]
119
- ? attrs.currentWidget(items[altIndex], current) || []
119
+ ? attrs.altCurrentWidget(items[altIndex], current) || []
120
120
  : [],
121
121
 
122
122
  ...children
@@ -130,7 +130,9 @@ const
130
130
  themeClass: attrs.themeClass,
131
131
  icon: themeIcon
132
132
  }, allItems),
133
- ...attrs.currentWidget && current >= 0 && items[current] ? attrs.currentWidget(items[current], current) || [] : []
133
+ ...attrs.currentWidget && current >= 0 && items[current] ? attrs.currentWidget(items[current], current) || [] : [],
134
+ ...attrs.altCurrentWidget && altIndex >= 0 && items[altIndex] ? attrs.altCurrentWidget(items[altIndex], current) || [] : [],
135
+
134
136
  ] : allItems;
135
137
  }
136
138
  ),