@nebularstreams/libmui 2.0.2 → 2.0.4

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.
Files changed (38) hide show
  1. package/dist/libui.css +15 -1
  2. package/package.json +2 -5
  3. package/rollup.config.js +20 -0
  4. package/src/app/app.js +9 -0
  5. package/src/css/a-measures.css +5 -0
  6. package/src/css/b-root-bootstrap-ext.css +81 -0
  7. package/src/css/b-root-bootstrap.css +178 -0
  8. package/src/css/b-root-semantic-flex.css +70 -0
  9. package/src/css/b-root-semantic-size-new.css +37 -0
  10. package/src/css/b-root-semantic-size.css +55 -0
  11. package/src/css/b-root-semantic-skin.css +48 -0
  12. package/src/css/b-root-semantic.css +111 -0
  13. package/src/css/b-root.css +3 -0
  14. package/src/css/body.css +60 -0
  15. package/src/css/cardie.css +6 -0
  16. package/src/css/flex.css +46 -0
  17. package/src/css/fontawesome/brands.min.css +16 -0
  18. package/src/css/fontawesome/fontawesome-ext.css +7 -0
  19. package/src/css/fontawesome/fontawesome-solid.css +17 -0
  20. package/src/css/fontawesome/fontawesome.css +4359 -0
  21. package/src/index.js +34 -0
  22. package/src/style.js +14 -0
  23. package/src/util/fuckingconfirm.js +28 -0
  24. package/src/util/mithril-range.js +443 -0
  25. package/src/util/util.clone.js +8 -0
  26. package/src/util/util.tokenizer.js +227 -0
  27. package/src/util/widgets.core.js +314 -0
  28. package/src/util/widgets.js +72 -0
  29. package/src/util/widgets.utils.js +10 -0
  30. package/src/widgets/Basic.js +346 -0
  31. package/src/widgets/CardieWidget.js +167 -0
  32. package/src/widgets/ComboPrompt.js +112 -0
  33. package/src/widgets/InputWidget.js +238 -0
  34. package/src/widgets/NoticeWidget.js +31 -0
  35. package/src/widgets/OverflowUtils.js +449 -0
  36. package/src/widgets/RangeWidget.js +200 -0
  37. package/src/widgets/Separator.js +21 -0
  38. package/src/widgets/SwitchWidget.js +42 -0
@@ -0,0 +1,48 @@
1
+ .fg-accent {
2
+ color: var(--accent);
3
+ }
4
+
5
+ .primary {
6
+ color: var(--primary-color);
7
+ }
8
+
9
+ .accent-back {
10
+ color: var(--text-over-accent);
11
+ background-color: var(--accent) !important;
12
+ }
13
+
14
+ .bg-accent {
15
+ color: var(--text-over-accent) !important;
16
+ background-color: var(--accent) !important;
17
+ }
18
+
19
+ .bg-accent-light {
20
+ background-color: var(--accent-light) !important;
21
+ }
22
+
23
+ .bg-accent-dark {
24
+ color: var(--text-over-accent) ;
25
+ background-color: var(--accent-dark) !important;
26
+ }
27
+
28
+ .bg-primary {
29
+ background-color: var(--primary-color) !important;
30
+ color: var(--text-over-primary);
31
+ }
32
+
33
+ .bg-window {
34
+ background-color: var(--window-background) !important;
35
+ color: var(--text);
36
+ }
37
+
38
+ .bg-window-hi {
39
+ background-color: var(--window-background-hi) !important;
40
+ color: var(--text);
41
+ }
42
+
43
+
44
+ .bg-window-lo {
45
+ background-color: var(--window-background-lo) !important;
46
+ color: var(--text);
47
+ }
48
+
@@ -0,0 +1,111 @@
1
+
2
+ .relative {
3
+ position: relative;
4
+ }
5
+
6
+ .absolute {
7
+ position: absolute;
8
+ }
9
+
10
+ .absolute.right {
11
+ right: 0;
12
+ }
13
+
14
+ .absolute.bottom {
15
+ bottom: 0;
16
+ }
17
+
18
+ .scrolly {
19
+ overflow-y: auto !important;
20
+ overflow-x: hidden;
21
+ -webkit-overflow-scrolling: touch;
22
+ -ms-overflow-style: -ms-autohiding-scrollbar;
23
+ scrollbar-width: none; /* Firefox */
24
+ }
25
+
26
+ .scrollx::-webkit-scrollbar,
27
+ .scrolly::-webkit-scrollbar {
28
+ display: none;
29
+ }
30
+
31
+ /* Hide scrollbar for IE, Edge and Firefox */
32
+
33
+ .scrollx {
34
+ overflow-y: hidden;
35
+ overflow-x: auto !important;
36
+ -webkit-overflow-scrolling: touch;
37
+ -ms-overflow-style: -ms-autohiding-scrollbar;
38
+ scrollbar-width: none; /* Firefox */
39
+ }
40
+
41
+ .scroll {
42
+ overflow: auto !important;
43
+ -webkit-overflow-scrolling: touch;
44
+ }
45
+
46
+ .vcenter {
47
+ vertical-align: middle;
48
+ }
49
+
50
+ .monospace {
51
+ white-space: pre-wrap;
52
+ font-family: monospace;
53
+ }
54
+
55
+
56
+ .ohidden {
57
+ overflow: hidden;
58
+ }
59
+
60
+ .font-50 {
61
+ font-size: 0.5rem;
62
+ }
63
+
64
+ .font-75 {
65
+ font-size: 0.75rem;
66
+ }
67
+
68
+ .font-100 {
69
+ font-size: 1rem;
70
+ }
71
+
72
+ .font-125 {
73
+ font-size: 1.25rem;
74
+ }
75
+
76
+ .font-150 {
77
+ font-size: 1.5rem;
78
+ }
79
+
80
+ .font-100 {
81
+ font-size: 1rem;
82
+ }
83
+
84
+ .vcenter {
85
+ vertical-align: middle;
86
+ }
87
+
88
+ .shadow-1 {
89
+ box-shadow: 0 0 1px var(--shadow-color);
90
+ z-index: 100;
91
+ }
92
+
93
+ .shadow-2 {
94
+ box-shadow: 0 0 2px var(--shadow-color);
95
+ z-index: 100;
96
+ }
97
+
98
+ .shadow-3 {
99
+ box-shadow: 0 0 3px var(--shadow-color);
100
+ z-index: 100;
101
+ }
102
+
103
+ .shadow-4 {
104
+ box-shadow: 0 0 4px var(--shadow-color);
105
+ z-index: 100;
106
+ }
107
+
108
+ .pointer {
109
+ cursor: pointer;
110
+ }
111
+
@@ -0,0 +1,3 @@
1
+ * {
2
+ box-sizing: border-box;
3
+ }
@@ -0,0 +1,60 @@
1
+
2
+ body {
3
+ padding: 0;
4
+ margin: 0;
5
+ overflow: hidden;
6
+ font-family: sans-serif;
7
+ background: black no-repeat center;
8
+ background-size: cover;
9
+ box-sizing: border-box;
10
+ }
11
+
12
+ body.error:after {
13
+ content: attr(data-error);
14
+ position: absolute;
15
+ width: calc(100% - 4rem);
16
+ bottom: 0;
17
+ margin: 2rem;
18
+ font-size: 1.5rem;
19
+ color: white;
20
+ text-align: center;
21
+ border: solid 1px rgba(255, 25, 25, 0.5);
22
+ padding: 2rem;
23
+ left: 0;
24
+ box-sizing: border-box;
25
+ background: rgba(80, 0, 0, 0.8);
26
+ border-radius: 1rem;
27
+ }
28
+ body.loading canvas,
29
+ body.loading .ui-button,
30
+ body.loading .popper {
31
+ opacity: 0;
32
+ }
33
+
34
+ body.loading .progressbar {
35
+ display: block;
36
+ }
37
+
38
+ canvas {
39
+ position: absolute;
40
+ width: 100% !important;
41
+ height: 100% !important;
42
+ }
43
+
44
+ .progressbar {
45
+ display: none;
46
+ bottom: 1rem;
47
+ left: 1rem;
48
+ right: 1rem;
49
+ height: 0.5rem;
50
+ position: absolute;
51
+ }
52
+
53
+ .progressbar > div {
54
+ background: white;
55
+ height: 100%;
56
+ position: absolute;
57
+ left: 0;
58
+ top: 0;
59
+ border-radius: 1rem;
60
+ }
@@ -0,0 +1,6 @@
1
+ .cardiebody {
2
+ display: flex;
3
+ flex-direction: row;
4
+ align-items: self-start;
5
+ }
6
+
@@ -0,0 +1,46 @@
1
+
2
+ .flexcol {
3
+ flex-direction: column;
4
+ display: flex
5
+ }
6
+
7
+ .flexrow {
8
+ flex-direction: row;
9
+ display: flex
10
+ }
11
+
12
+ .grows {
13
+ flex-grow: 1;
14
+ }
15
+
16
+ .noshrink {
17
+ flex-shrink: 0;
18
+ }
19
+
20
+ .h-100 {
21
+ height: -webkit-fill-available;
22
+ }
23
+
24
+ .w-100 {
25
+ width: -webkit-fill-available;
26
+ }
27
+
28
+ .relative {
29
+ position: relative;
30
+ }
31
+
32
+ .absolute {
33
+ position: absolute;
34
+ }
35
+
36
+ .unitheight {
37
+ height: 2.54rem;
38
+ }
39
+
40
+ .pad-2 {
41
+ padding: 0.5rem;
42
+ }
43
+
44
+ .scaff-bottom {
45
+ border-bottom: solid 1px var(--border-color);
46
+ }
@@ -0,0 +1,16 @@
1
+ /*!
2
+ * Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com
3
+ * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
4
+ */
5
+ @font-face {
6
+ font-family: "Font Awesome 5 Brands";
7
+ font-style: normal;
8
+ font-weight: 400;
9
+ font-display: block;
10
+ src: url(webfonts/fa-brands-400.woff2) format("woff2")
11
+ }
12
+
13
+ .fabrd:before {
14
+ font-family: "Font Awesome 5 Brands" !important;
15
+ font-weight: 400
16
+ }
@@ -0,0 +1,7 @@
1
+ .fas {
2
+ line-height: inherit !important;
3
+ }
4
+
5
+ .fas.last {
6
+ order: 2;
7
+ }
@@ -0,0 +1,17 @@
1
+ /*!
2
+ * Font Awesome Free 5.9.0 by @fontawesome - https://fontawesome.com
3
+ * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
4
+ */
5
+ @font-face {
6
+ font-family: 'Font Awesome 5 Free';
7
+ font-style: normal;
8
+ font-weight: 900;
9
+ font-display: swap;
10
+ src: url("webfonts/fa-solid-900.woff2") format("woff2"), url("webfonts/fa-solid-900.woff") format("woff"), url("webfonts/fa-solid-900.ttf") format("truetype");
11
+ }
12
+
13
+ .fa,
14
+ .fas {
15
+ font-family: 'Font Awesome 5 Free';
16
+ font-weight: 900;
17
+ }