@nebularstreams/libmui 2.5.31 → 2.5.34

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.31",
4
+ "version": "2.5.34",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
7
7
  "scripts": {
@@ -20,7 +20,7 @@ function storyOverflow(attrs) {
20
20
  icon
21
21
  } = attrs,
22
22
  source = typeof maybeFunctionItems === "function" ? maybeFunctionItems() : maybeFunctionItems,
23
- items = itemsKey ? typeof itemsKey === "function" ? itemsKey() : source[itemsKey] : source;
23
+ items = itemsKey ? typeof itemsKey === "function" ? itemsKey() : source[itemsKey] || [] : source;
24
24
 
25
25
  return promptOptions(items, onchange, {title, field, icon, textNew, textHint, resolve});
26
26
  }
@@ -883,6 +883,7 @@ const
883
883
  icon: metaDef.icon || attrs.icon,
884
884
  hint: metaDef.title,
885
885
  label: metaDef.label,
886
+ title: metaDef.question,
886
887
  itemsKey: typeof metaDef.optionsKey === "function" ? () => {
887
888
  return metaDef.optionsKey(targetParameters);
888
889
  } : metaDef.optionsKey,
@@ -15,34 +15,30 @@
15
15
  }
16
16
 
17
17
  .hud .colorjoe-cell {
18
- height: fit-content;
19
18
  border-radius: 0.25rem;
20
19
  overflow: hidden;
21
20
  border: solid 1px var(--border-color);
22
21
  }
23
22
 
24
- .colorjoe-cell > .inset {
25
- height: 2rem;
26
- position: relative;
27
- }
28
23
 
29
24
  .hud .gradient .colorjoe-cell > .inset {
30
25
  min-width: unset;
31
26
  position: relative;
27
+ height: auto;
32
28
  }
33
29
 
30
+
34
31
  .hud .colorjoe-cell > .inset.titled:before {
32
+ color: #fff;
35
33
  content: attr(data-caption);
36
- text-align: center;
37
- font-size: 1.1rem;
34
+ display: inline-block;
35
+ font-size: 0.75rem;
38
36
  font-variant: all-small-caps;
37
+ text-align: center;
38
+ text-shadow: 0 0 4px #000;
39
39
  width: 100%;
40
- display: inline-block;
41
- text-shadow: 0 0 4px black;
42
- color: white;
43
40
  }
44
41
 
45
-
46
42
  .hud .colorjoe-cell.withalt > .inset:after {
47
43
  content: "";
48
44
  background: var(--accent);
@@ -59,15 +55,7 @@
59
55
  }
60
56
 
61
57
  .hud .cardie > .title .colorjoe-cell > .inset {
62
- height: 2.54rem;
63
- }
64
-
65
- .hud .colorjoe-cell.unitheightsmall > .inset {
66
- height: 2rem;
67
- }
68
-
69
- .hud .colorjoe-cell.unitheight > .inset {
70
- height: 2.54rem;
58
+ height: -webkit-fill-available;
71
59
  }
72
60
 
73
61
  .hud .gradient {
@@ -92,7 +80,6 @@
92
80
  .hud .gradient .colorjoe-cell {
93
81
  border-radius: 0;
94
82
  border: 0;
95
- height: 2rem;
96
83
  }
97
84
 
98
85
  .hud .underlay {
@@ -117,6 +104,5 @@
117
104
 
118
105
 
119
106
  .ptype_color {
120
- width: auto;
121
107
  position: relative;
122
108
  }