@nebularstreams/libmui 2.0.12 → 2.0.14

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.0.12",
4
+ "version": "2.0.14",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
7
7
  "scripts": {
@@ -58,10 +58,6 @@
58
58
  margin: 1rem;
59
59
  }
60
60
 
61
- #modal-container {
62
- font-size: 1.5rem !important;
63
- }
64
-
65
61
  .modal-content .popup input {
66
62
  line-height: var(--unitsize-small);
67
63
  font-size: 1.25rem;
@@ -83,7 +79,7 @@
83
79
  }
84
80
 
85
81
  #modal-container {
86
- font-size: 1.5rem !important;
82
+ font-size: 1.25rem;
87
83
  position: absolute;
88
84
  z-index: 100000;
89
85
  left: 0;
@@ -93,10 +89,10 @@
93
89
  align-items: center;
94
90
  justify-content: center;
95
91
  background: rgba(0, 0, 0, 0.7);
96
- --accent-light: white;
97
- --text: black;
98
- --text-lo: black;
99
- color: black;
92
+ --accent-light: #333;
93
+ --text: #ddd;
94
+ --text-lo: #aaa;
95
+ color: var(--accent);
100
96
  display: none;
101
97
  }
102
98
 
@@ -104,7 +100,8 @@
104
100
  background: transparent;
105
101
  border: none;
106
102
  }
103
+
107
104
  #modal-container .container {
108
- text-align: right;
109
- padding: 1rem;
110
- }
105
+ text-align: right;
106
+ padding: 1rem;
107
+ }
package/src/index.js CHANGED
@@ -2,39 +2,88 @@ import m from "mithril";
2
2
 
3
3
  import {Button, ButtonNew, Icon, Empty, Selector} from "./widgets/Basic";
4
4
  import CardieWidget from "./widgets/CardieWidget";
5
+ import ButtonChoiceWidget from "./widgets/ButtonChoiceWidget";
5
6
  import InputWidget from "./widgets/InputWidget";
6
7
  import NoticeWidget from "./widgets/NoticeWidget";
8
+ import ComboWidget from "./widgets/ComboWidget";
9
+ import ComboPrompt from "./widgets/ComboPrompt";
7
10
  import SwitchWidget from "./widgets/SwitchWidget";
11
+ import ColorJoeWidget from "./widgets/ColorJoeWidget";
8
12
  import * as OverflowUtils from "./widgets/OverflowUtils";
9
13
  import {clearModal, popupMessage} from "./util/widgets";
10
14
  import Separator from "./widgets/Separator";
15
+ import PlusMinus from "./widgets/PlusMinusWidget";
11
16
  import TitleBarWidget from "./widgets/TitleBarWidget";
12
17
  import RangeWidget from "./widgets/RangeWidget";
18
+ import SmileysPanel from "./widgets/SmileysPanel";
19
+ import SmileysWidget from "./widgets/SmileysWidget";
20
+ import SmileysButton from "./widgets/SmileysButton";
13
21
  import startApp from "./app/app"
14
22
  import defineWidget from "./util/widgets.utils";
15
23
  import {OverflowMenu} from "./util/widgets.core";
16
24
  import {confirm, confirmPromise} from "./util/fuckingconfirm.js"
25
+
26
+
27
+ import {
28
+ VideoUploadButton,
29
+ FileSelectButton,
30
+ ImageDataButton,
31
+ ImageSelectButton,
32
+ ImageProcessButton,
33
+ MediaSelectButton,
34
+ processImage
35
+ } from "./widgets/SelectFileMiniButton"
36
+
37
+ import {
38
+ TemplatedInputWidget, ParameterTable, ParameterCardie, MultiToggleWidget, RangeToggleWidget
39
+ } from "./widgets/TemplatedInputWidget"
40
+
17
41
  import "./style.js"
18
42
 
19
43
  export {
20
44
  Button,
45
+ ButtonChoiceWidget,
21
46
  ButtonNew,
22
47
  CardieWidget,
48
+ ComboPrompt,
49
+ ComboWidget,
50
+ ColorJoeWidget,
23
51
  Empty,
24
52
  Icon,
25
53
  InputWidget,
26
54
  NoticeWidget,
27
55
  OverflowMenu,
28
56
  OverflowUtils,
57
+ PlusMinus,
29
58
  RangeWidget,
30
59
  Selector,
60
+ SmileysPanel,
61
+ SmileysWidget,
62
+ SmileysButton,
31
63
  SwitchWidget,
32
64
  Separator,
33
65
  TitleBarWidget,
66
+
67
+ // SelectFileMinibutton
68
+ FileSelectButton,
69
+ ImageDataButton,
70
+ ImageSelectButton,
71
+ ImageProcessButton,
72
+ MediaSelectButton,
73
+ VideoUploadButton,
74
+
75
+ // TemplatedInputWidhet
76
+ TemplatedInputWidget,
77
+ ParameterTable,
78
+ ParameterCardie,
79
+ MultiToggleWidget,
80
+ RangeToggleWidget,
81
+
34
82
  clearModal,
35
- popupMessage,
36
- startApp,
37
- defineWidget,
38
83
  confirm,
39
- confirmPromise
84
+ confirmPromise,
85
+ defineWidget,
86
+ processImage,
87
+ popupMessage,
88
+ startApp
40
89
  }