@nebularstreams/libmui 2.5.40 → 2.5.42

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.40",
4
+ "version": "2.5.42",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
7
7
  "scripts": {
@@ -1,11 +1,12 @@
1
- const MAINSTATE = {
2
- setTransState: () => {
3
- console.warn("MainState: Not Implemented setTransState")
1
+ const
2
+ MAINSTATE = {
3
+ setTransState: () => {
4
+ console.warn("MainState: Not Implemented setTransState")
5
+ }
4
6
  }
5
- }
6
7
 
7
- function implement(name, func) {
8
- Object.assign(MAINSTATE, func);
8
+ function implement(functs) {
9
+ Object.assign(MAINSTATE, functs);
9
10
  }
10
11
 
11
12
  export default MAINSTATE;
@@ -2,4 +2,5 @@
2
2
  --unitsize-mini: 1.25rem;
3
3
  --unitsize-small: 2rem;
4
4
  --unitsize: 2.54rem;
5
- }
5
+ }
6
+
@@ -0,0 +1,12 @@
1
+
2
+ .bg-accent-light {
3
+ background: var(--accent-light) !important;
4
+ }
5
+
6
+ .bg-window-lo {
7
+ background: var(--window-background-lo) !important;
8
+ }
9
+
10
+ .bg-window-hi {
11
+ background: var(--window-background-hi) !important;
12
+ }
@@ -23,6 +23,23 @@
23
23
  justify-content: space-evenly;
24
24
  }
25
25
 
26
+ .flexbreak {
27
+ margin: 0 !important;
28
+ padding: 0 !important;
29
+ }
30
+
31
+ .scrolly {
32
+ overflow-y: auto !important;
33
+ overflow-x: hidden;
34
+ -webkit-overflow-scrolling: touch;
35
+ -ms-overflow-style: -ms-autohiding-scrollbar;
36
+ scrollbar-width: none; /* Firefox */
37
+ }
38
+
39
+ .ohidden {
40
+ overflow: hidden;
41
+ }
42
+
26
43
  .flex-al-center {
27
44
  align-items: center;
28
45
  }
@@ -23,6 +23,22 @@
23
23
  width: fit-content;
24
24
  }
25
25
 
26
+ .w-max {
27
+ width: -webkit-fill-available;
28
+ }
29
+
30
+ .w-30 {
31
+ width: 30%;
32
+ }
33
+
34
+ .font-125 {
35
+ font-size: 1.25rem;
36
+ }
37
+
38
+ .font-75 {
39
+ font-size: 0.75rem;
40
+ }
41
+
26
42
  .unitheight {
27
43
  height: var(--unitsize);
28
44
  line-height: var(--unitsize);
@@ -39,6 +55,10 @@
39
55
  }
40
56
 
41
57
 
58
+ .unitheight {
59
+ height: var(--unitsize) !important;
60
+ }
61
+
42
62
  .unitheightsmall {
43
63
  height: var(--unitsize-small);
44
64
  line-height: var(--unitsize-small);
@@ -0,0 +1,23 @@
1
+
2
+ #notification-container {
3
+ position: fixed;
4
+ z-index: 100000;
5
+ top: 2.2rem;
6
+ transform: translateX(-50%);
7
+ left: 50%;
8
+ bottom: auto;
9
+ right: auto;
10
+ }
11
+
12
+ #notification-container .notification {
13
+ border-radius: 10rem !important;
14
+ padding: 1rem;
15
+ font-size: 1rem;
16
+ color: var(--accent);
17
+ }
18
+
19
+
20
+ #notification-container .notification i {
21
+ padding: 0 1rem;
22
+ }
23
+
@@ -0,0 +1,21 @@
1
+ .witharia:before {
2
+ content: attr(aria-label);
3
+ display: block;
4
+ font-variant: all-small-caps;
5
+ line-height: 100%;
6
+ font-size: 0.8em;
7
+ padding-bottom: 0.25rem;
8
+ color: var(--text-lo);
9
+ }
10
+
11
+ .witharia.max:before {
12
+ width: 100%;
13
+ }
14
+
15
+ .witharia.minilabel:before {
16
+ text-align: center;
17
+ border-bottom: solid 1px var(--border-color);
18
+ border-top: solid 1px var(--border-color);
19
+ width: 100%;
20
+ margin-bottom: 0.5rem;
21
+ }
package/src/index.js CHANGED
@@ -27,7 +27,7 @@ import {CoolContentTicker, CoolGenericTicker, GenericButtonTicker, optionsPrompt
27
27
  import EmptyButton from "./widgets/EmptyButton";
28
28
  import tainter from "./util/tainter"
29
29
 
30
- import * as MainState from "./app/MainState";
30
+ import MainState, {implement} from "./app/MainState";
31
31
 
32
32
  import {
33
33
  VideoUploadButton,
@@ -45,6 +45,8 @@ import {
45
45
 
46
46
  import "./style.js"
47
47
 
48
+ const MainStateImplement = implement;
49
+
48
50
  export {
49
51
  Button,
50
52
  ButtonChoiceWidget,
@@ -104,6 +106,7 @@ export {
104
106
  startApp,
105
107
  tainter,
106
108
 
107
- MainState
109
+ MainState,
110
+ MainStateImplement
108
111
 
109
112
  }
package/src/style.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import "./css/a-measures.css"
2
+ import "./css/b-colors.css"
2
3
  import "./css/b-root.css"
3
4
  import "./css/b-root-bootstrap.css"
4
5
  import "./css/b-root-bootstrap-ext.css"
@@ -10,6 +11,8 @@ import "./css/cardie.css"
10
11
  import "./css/flex.css"
11
12
 
12
13
  import "./css/ui.popup.css"
14
+ import "./css/ui.witharia.css"
15
+ import "./css/ui.notifications.css"
13
16
 
14
17
  import "./css/fontawesome/fontawesome.css"
15
18
  import "./css/fontawesome/fontawesome-solid.css"
@@ -9,3 +9,21 @@
9
9
  overflow: hidden;
10
10
  font-variant: all-small-caps;;
11
11
  }
12
+
13
+ .combowidget .icon {
14
+ width: var(--unitsize);
15
+ flex-shrink: 0;
16
+ padding: 0 !important;
17
+ margin: 0;
18
+ }
19
+
20
+ .combowidget button {
21
+ font-size: inherit;
22
+ padding: 0;
23
+ }
24
+
25
+
26
+ .combovalue, .combowidget {
27
+ overflow: hidden;
28
+ font-variant: all-small-caps;
29
+ }