@nebularstreams/libmui 2.5.91 → 2.5.92

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.91",
4
+ "version": "2.5.92",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
7
7
  "scripts": {
@@ -203,7 +203,7 @@ const
203
203
  (attrs.element || "widget") + ".selector" + (attrs.horizontal ? ".flexrow" : ".flexcol") + (attrs.className ? "." + attrs.className : ""),
204
204
  {
205
205
  ...attrs.key && {key: attrs.key},
206
- class: (state.current ? "hascurrent" : "empty") + (attrs.class ? " " + attrs.class : "")+ (current?.bodyTitle ? " withbodytitle" : "")
206
+ class: (state.current ? "hascurrent" : "empty") + (attrs.class ? " " + attrs.class : "") + (current?.bodyTitle ? " withbodytitle" : "")
207
207
  },
208
208
  [
209
209
  ...((!attrs.hideonly || (attrs.items.length > 1)) && (!attrs.hidesel))
@@ -247,8 +247,14 @@ const
247
247
  ] : [],
248
248
  ...(!attrs.toggle || !state.bodyHidden)
249
249
  ? [
250
+ ...current?.bodyTitle ? [
251
+ m(".bodytitle", current.bodyTitle)
252
+ ] : [],
250
253
  /** body */
251
- m(".grows.flexcol.ohidden.selectorbody", {class: attrs.bodyClass, role: "presentation", ...current?.bodyTitle && {"data-bodytitle": current.bodyTitle}}, [
254
+ m(".grows.flexcol.ohidden.selectorbody", {
255
+ class: attrs.bodyClass,
256
+ role: "presentation"
257
+ }, [
252
258
  m(
253
259
  current.widget,
254
260
  getAttrs(current.attrs, attrs, state.currentParams),
@@ -28,8 +28,7 @@
28
28
 
29
29
 
30
30
  /* selector */
31
- .selector.withbodytitle > .selectorbody:before {
32
- content: attr(data-bodytitle);
31
+ .selector.withbodytitle > .bodytitle {
33
32
  text-align: center;
34
33
  line-height: 2rem;
35
34
  border-bottom: solid 2px var(--accent);