elbe-ui 0.2.37 → 0.2.44
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/README.md +6 -0
- package/dist/bit/bit.d.ts +4 -1
- package/dist/bit/bit.js +24 -28
- package/dist/bit/ctrl_bit.js +47 -28
- package/dist/elbe.css +71 -30
- package/dist/elbe.css.map +1 -1
- package/dist/index.js +33 -62
- package/dist/service/s_api.js +62 -49
- package/dist/ui/components/badge.js +13 -34
- package/dist/ui/components/base/box.js +21 -23
- package/dist/ui/components/base/card.js +19 -10
- package/dist/ui/components/base/padded.js +25 -16
- package/dist/ui/components/button/button.js +30 -22
- package/dist/ui/components/button/choose_button.js +7 -10
- package/dist/ui/components/button/icon_button.js +36 -26
- package/dist/ui/components/button/toggle_button.js +19 -10
- package/dist/ui/components/dialog.js +7 -10
- package/dist/ui/components/error_view.js +14 -16
- package/dist/ui/components/input/checkbox.js +17 -8
- package/dist/ui/components/input/input_field.js +28 -23
- package/dist/ui/components/input/range.js +26 -9
- package/dist/ui/components/input/select.js +16 -7
- package/dist/ui/components/input/text_area.js +17 -8
- package/dist/ui/components/layout/flex.js +24 -16
- package/dist/ui/components/layout/scaffold.d.ts +4 -3
- package/dist/ui/components/layout/scaffold.js +28 -18
- package/dist/ui/components/layout/scroll.js +10 -14
- package/dist/ui/components/layout/spaced.js +3 -6
- package/dist/ui/components/spinner.js +16 -19
- package/dist/ui/components/text.js +42 -37
- package/dist/ui/theme/color_theme.js +36 -42
- package/dist/ui/theme/colors.d.ts +2 -3
- package/dist/ui/theme/colors.js +42 -78
- package/dist/ui/theme/geometry_theme.js +8 -16
- package/dist/ui/theme/theme.js +12 -34
- package/dist/ui/theme/type_theme.js +11 -39
- package/dist/ui/util/confirm_dialog.js +1 -4
- package/dist/ui/util/error_view.js +4 -7
- package/dist/ui/util/toast.js +1 -4
- package/dist/ui/util/util.js +8 -13
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -28,3 +28,9 @@ so far, it has been optimized for React. It provides a variety of Widgets and th
|
|
|
28
28
|
# contribute
|
|
29
29
|
|
|
30
30
|
as of now, this is mainly a personal project for different stuff I built. So things might be a little rough around the edges. If you find any issues or want to help make elbe better, I'd love to hear from you :)
|
|
31
|
+
|
|
32
|
+
## publish
|
|
33
|
+
|
|
34
|
+
1. increment `version` number in `package.json`
|
|
35
|
+
2. run `bun run build`
|
|
36
|
+
3. run `npm publish`
|
package/dist/bit/bit.d.ts
CHANGED
|
@@ -4,7 +4,10 @@ export interface BitUseInterface<C, T> {
|
|
|
4
4
|
signal: Signal<BitState<T>>;
|
|
5
5
|
ctrl: C;
|
|
6
6
|
map: <D>(m: TriMap<T, D>) => D | preact.JSX.Element;
|
|
7
|
-
onData: (f: (d: T) => any
|
|
7
|
+
onData: <D>(f: (d: T) => any, { onLoading, onError, }?: {
|
|
8
|
+
onLoading?: () => any;
|
|
9
|
+
onError?: (e: string) => any;
|
|
10
|
+
}) => any;
|
|
8
11
|
}
|
|
9
12
|
interface BitData<C, T> {
|
|
10
13
|
ctrl: C;
|
package/dist/bit/bit.js
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
const error_view_1 = require("../ui/components/error_view");
|
|
11
|
-
const spinner_1 = require("../ui/components/spinner");
|
|
12
|
-
function makeBit(name) {
|
|
13
|
-
const c = (0, preact_1.createContext)(null);
|
|
1
|
+
import { jsx as _jsx } from "preact/jsx-runtime";
|
|
2
|
+
import { useSignal } from "@preact/signals";
|
|
3
|
+
import { createContext } from "preact";
|
|
4
|
+
import { useContext } from "preact/hooks";
|
|
5
|
+
import { ErrorView } from "../ui/components/error_view";
|
|
6
|
+
import { Column } from "../ui/components/layout/flex";
|
|
7
|
+
import { Spinner } from "../ui/components/spinner";
|
|
8
|
+
export function makeBit(name) {
|
|
9
|
+
const c = createContext(null);
|
|
14
10
|
c.displayName = name;
|
|
15
11
|
return c;
|
|
16
12
|
}
|
|
17
|
-
function ProvideBit(context, parameters, worker, ctrl, children) {
|
|
18
|
-
const s =
|
|
13
|
+
export function ProvideBit(context, parameters, worker, ctrl, children) {
|
|
14
|
+
const s = useSignal({ loading: true });
|
|
19
15
|
const _set = (n) => {
|
|
20
16
|
try {
|
|
21
17
|
if (JSON.stringify(n) === JSON.stringify(s.peek()))
|
|
@@ -31,28 +27,31 @@ function ProvideBit(context, parameters, worker, ctrl, children) {
|
|
|
31
27
|
return _set({ error });
|
|
32
28
|
};
|
|
33
29
|
function map(m) {
|
|
30
|
+
var _a;
|
|
34
31
|
const st = s.value;
|
|
35
32
|
if (st.loading)
|
|
36
33
|
return m.onLoading();
|
|
37
34
|
if (st.error)
|
|
38
35
|
return m.onError(st.error);
|
|
39
|
-
return m.onData(st.data
|
|
36
|
+
return m.onData((_a = st.data) !== null && _a !== void 0 ? _a : null);
|
|
40
37
|
}
|
|
41
38
|
const c = ctrl(parameters, { emit, emitLoading, emitError, map, signal: s });
|
|
42
39
|
worker(parameters, { emit, emitLoading, emitError, map, signal: s }, c);
|
|
43
|
-
return ((
|
|
40
|
+
return (_jsx(context.Provider, { value: { ctrl: c, state: s }, children: children }));
|
|
44
41
|
}
|
|
45
|
-
function useBit(context) {
|
|
42
|
+
export function useBit(context) {
|
|
46
43
|
try {
|
|
47
|
-
const { ctrl, state } =
|
|
44
|
+
const { ctrl, state } = useContext(context);
|
|
48
45
|
const v = state.value;
|
|
49
46
|
function map(m) {
|
|
47
|
+
var _a;
|
|
50
48
|
if (v.loading)
|
|
51
|
-
return (m.onLoading ||
|
|
49
|
+
return (m.onLoading ||
|
|
50
|
+
(() => (_jsx(Column, { cross: "center", children: _jsx(Spinner, {}) }))))();
|
|
52
51
|
if (v.error)
|
|
53
52
|
return (m.onError ||
|
|
54
|
-
((e) =>
|
|
55
|
-
return m.onData(v.data
|
|
53
|
+
((e) => { var _a; return _jsx(ErrorView, { error: e, retry: (_a = ctrl.reload) !== null && _a !== void 0 ? _a : null }); }))(v.error);
|
|
54
|
+
return m.onData((_a = v.data) !== null && _a !== void 0 ? _a : null);
|
|
56
55
|
}
|
|
57
56
|
return {
|
|
58
57
|
signal: state,
|
|
@@ -64,20 +63,17 @@ function useBit(context) {
|
|
|
64
63
|
* @param f the builder function
|
|
65
64
|
* @returns the built component
|
|
66
65
|
*/
|
|
67
|
-
onData: (f) => map({ onData: f }),
|
|
66
|
+
onData: (f, { onLoading, onError, } = {}) => map({ onData: f, onLoading: onLoading, onError: onError }),
|
|
68
67
|
};
|
|
69
68
|
}
|
|
70
69
|
catch (e) {
|
|
71
70
|
const err = `BIT ERROR: NO ${context.displayName} PROVIDED`;
|
|
72
71
|
console.error(err, e);
|
|
73
72
|
return {
|
|
74
|
-
map: (_) => (
|
|
73
|
+
map: (_) => _jsx("div", { children: err }),
|
|
75
74
|
ctrl: null,
|
|
76
75
|
signal: null,
|
|
77
|
-
onData: () => (
|
|
76
|
+
onData: () => _jsx("div", { children: err }),
|
|
78
77
|
};
|
|
79
78
|
}
|
|
80
79
|
}
|
|
81
|
-
function BitSpinner({ name }) {
|
|
82
|
-
return (0, jsx_runtime_1.jsx)(spinner_1.Spinner, {});
|
|
83
|
-
}
|
package/dist/bit/ctrl_bit.js
CHANGED
|
@@ -1,21 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
11
|
+
var t = {};
|
|
12
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
13
|
+
t[p] = s[p];
|
|
14
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
15
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
16
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
17
|
+
t[p[i]] = s[p[i]];
|
|
18
|
+
}
|
|
19
|
+
return t;
|
|
20
|
+
};
|
|
21
|
+
import { useEffect } from "preact/hooks";
|
|
22
|
+
import { makeBit as mb, ProvideBit, useBit } from "./bit";
|
|
7
23
|
class BitControl {
|
|
8
|
-
p;
|
|
9
|
-
bit;
|
|
10
24
|
constructor(p, bit) {
|
|
11
25
|
this.bit = bit;
|
|
12
26
|
this.p = p;
|
|
13
27
|
}
|
|
14
28
|
act(fn) {
|
|
15
29
|
this.bit.map({
|
|
16
|
-
onData:
|
|
30
|
+
onData: (d) => __awaiter(this, void 0, void 0, function* () {
|
|
17
31
|
try {
|
|
18
|
-
|
|
32
|
+
yield fn(d);
|
|
19
33
|
}
|
|
20
34
|
catch (e) {
|
|
21
35
|
if (e && e.code && e.message)
|
|
@@ -23,7 +37,7 @@ class BitControl {
|
|
|
23
37
|
else
|
|
24
38
|
console.error("[BitERROR] act: ", e);
|
|
25
39
|
}
|
|
26
|
-
},
|
|
40
|
+
}),
|
|
27
41
|
});
|
|
28
42
|
}
|
|
29
43
|
/**
|
|
@@ -32,33 +46,38 @@ class BitControl {
|
|
|
32
46
|
*/
|
|
33
47
|
dispose() { }
|
|
34
48
|
}
|
|
35
|
-
class WorkerControl extends BitControl {
|
|
36
|
-
|
|
49
|
+
export class WorkerControl extends BitControl {
|
|
50
|
+
constructor() {
|
|
51
|
+
super(...arguments);
|
|
52
|
+
this.reload = null;
|
|
53
|
+
}
|
|
37
54
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
55
|
+
export class StreamControl extends BitControl {
|
|
56
|
+
constructor() {
|
|
57
|
+
super(...arguments);
|
|
58
|
+
this.stream = null;
|
|
59
|
+
}
|
|
41
60
|
dispose() {
|
|
42
61
|
if (this.stream)
|
|
43
62
|
this.disposeStream(this.stream);
|
|
44
63
|
}
|
|
45
64
|
}
|
|
46
|
-
exports.StreamControl = StreamControl;
|
|
47
65
|
function make(name) {
|
|
48
|
-
return (
|
|
66
|
+
return mb(name);
|
|
49
67
|
}
|
|
50
68
|
function use(b) {
|
|
51
|
-
return
|
|
69
|
+
return useBit(b);
|
|
52
70
|
}
|
|
53
|
-
function CtrlBit(ctrl, name) {
|
|
71
|
+
export function CtrlBit(ctrl, name) {
|
|
54
72
|
const context = make((name || "Unknown") + "Bit");
|
|
55
|
-
function Provide(
|
|
56
|
-
|
|
73
|
+
function Provide(_a) {
|
|
74
|
+
var { children } = _a, p = __rest(_a, ["children"]);
|
|
75
|
+
return ProvideBit(context, p, (p, b, c) => __awaiter(this, void 0, void 0, function* () {
|
|
57
76
|
b.emitLoading();
|
|
58
77
|
try {
|
|
59
78
|
if (c instanceof WorkerControl) {
|
|
60
79
|
if (c.reload)
|
|
61
|
-
|
|
80
|
+
yield c.reload();
|
|
62
81
|
}
|
|
63
82
|
if (c instanceof StreamControl) {
|
|
64
83
|
c.stream = c.listen();
|
|
@@ -67,20 +86,20 @@ function CtrlBit(ctrl, name) {
|
|
|
67
86
|
catch (e) {
|
|
68
87
|
b.emitError(e);
|
|
69
88
|
}
|
|
70
|
-
}, (p, b) => {
|
|
89
|
+
}), (p, b) => {
|
|
71
90
|
const c = ctrl(p, b);
|
|
72
91
|
// clean up on unmount
|
|
73
|
-
|
|
92
|
+
useEffect(() => () => c.dispose(), []);
|
|
74
93
|
if (c instanceof WorkerControl) {
|
|
75
|
-
c.reload =
|
|
94
|
+
c.reload = () => __awaiter(this, void 0, void 0, function* () {
|
|
76
95
|
b.emitLoading();
|
|
77
96
|
try {
|
|
78
|
-
b.emit(
|
|
97
|
+
b.emit(yield c.worker());
|
|
79
98
|
}
|
|
80
99
|
catch (e) {
|
|
81
100
|
b.emitError(e);
|
|
82
101
|
}
|
|
83
|
-
};
|
|
102
|
+
});
|
|
84
103
|
}
|
|
85
104
|
return c;
|
|
86
105
|
}, children);
|
package/dist/elbe.css
CHANGED
|
@@ -55,9 +55,43 @@ body,
|
|
|
55
55
|
/* ========== ALIGN =========== */
|
|
56
56
|
/* ========== JUSTIFY =========== */
|
|
57
57
|
/* ========== RESPONSIVE =========== */
|
|
58
|
+
/*input[type="range"] {
|
|
59
|
+
-webkit-appearance: none;
|
|
60
|
+
appearance: none;
|
|
61
|
+
background: green;
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
width: 15rem;
|
|
64
|
+
|
|
65
|
+
&::-moz-range-track{
|
|
66
|
+
background-color: var(--c-context-border);
|
|
67
|
+
border-radius: 100px;
|
|
68
|
+
border: none;
|
|
69
|
+
height: 0.5rem;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&::-webkit-slider-runnable-track
|
|
73
|
+
{
|
|
74
|
+
border-radius: 100px;
|
|
75
|
+
border: none;
|
|
76
|
+
height: 0.5rem;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&::-webkit-slider-thumb
|
|
80
|
+
{
|
|
81
|
+
|
|
82
|
+
border: none;
|
|
83
|
+
-webkit-appearance: none; // Override default look
|
|
84
|
+
appearance: none;
|
|
85
|
+
margin-top: -6px;
|
|
86
|
+
border-radius: 100px;
|
|
87
|
+
height: 1.2rem;
|
|
88
|
+
width: 1.2rem;
|
|
89
|
+
}
|
|
90
|
+
}*/
|
|
58
91
|
}
|
|
59
92
|
.elbe .padded,
|
|
60
93
|
.elbe .card,
|
|
94
|
+
.elbe .toast,
|
|
61
95
|
.elbe input[type=text],
|
|
62
96
|
.elbe input[type=number],
|
|
63
97
|
.elbe input[type=password],
|
|
@@ -66,7 +100,6 @@ body,
|
|
|
66
100
|
.elbe input[type=time],
|
|
67
101
|
.elbe textarea,
|
|
68
102
|
.elbe select,
|
|
69
|
-
.elbe .toast,
|
|
70
103
|
.elbe button {
|
|
71
104
|
padding: var(--g-padding);
|
|
72
105
|
}
|
|
@@ -84,6 +117,7 @@ body,
|
|
|
84
117
|
}
|
|
85
118
|
.elbe .rounded,
|
|
86
119
|
.elbe .card,
|
|
120
|
+
.elbe .toast,
|
|
87
121
|
.elbe input[type=text],
|
|
88
122
|
.elbe input[type=number],
|
|
89
123
|
.elbe input[type=password],
|
|
@@ -92,7 +126,6 @@ body,
|
|
|
92
126
|
.elbe input[type=time],
|
|
93
127
|
.elbe textarea,
|
|
94
128
|
.elbe select,
|
|
95
|
-
.elbe .toast,
|
|
96
129
|
.elbe button {
|
|
97
130
|
border-radius: var(--g-radius);
|
|
98
131
|
border-color: inherit;
|
|
@@ -141,6 +174,7 @@ body,
|
|
|
141
174
|
}
|
|
142
175
|
.elbe .box, .elbe .header, .elbe .base-limited,
|
|
143
176
|
.elbe .card,
|
|
177
|
+
.elbe .toast,
|
|
144
178
|
.elbe input[type=text],
|
|
145
179
|
.elbe input[type=number],
|
|
146
180
|
.elbe input[type=password],
|
|
@@ -149,7 +183,6 @@ body,
|
|
|
149
183
|
.elbe input[type=time],
|
|
150
184
|
.elbe textarea,
|
|
151
185
|
.elbe select,
|
|
152
|
-
.elbe .toast,
|
|
153
186
|
.elbe button {
|
|
154
187
|
border-style: solid;
|
|
155
188
|
border-width: var(--g-border-width);
|
|
@@ -382,15 +415,6 @@ body,
|
|
|
382
415
|
border-radius: 25%;
|
|
383
416
|
object-fit: cover;
|
|
384
417
|
}
|
|
385
|
-
.elbe .toast {
|
|
386
|
-
position: fixed;
|
|
387
|
-
bottom: 1rem;
|
|
388
|
-
right: 1rem;
|
|
389
|
-
z-index: 200;
|
|
390
|
-
left: 50%;
|
|
391
|
-
width: min(40rem, 90%);
|
|
392
|
-
transform: translateX(-50%);
|
|
393
|
-
}
|
|
394
418
|
.elbe select {
|
|
395
419
|
padding: 0 0.75rem;
|
|
396
420
|
height: 3rem;
|
|
@@ -472,29 +496,36 @@ body,
|
|
|
472
496
|
.elbe input[type=range] {
|
|
473
497
|
-webkit-appearance: none;
|
|
474
498
|
appearance: none;
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
border: none;
|
|
483
|
-
height: 0.5rem;
|
|
499
|
+
width: 100%;
|
|
500
|
+
height: 0.4rem;
|
|
501
|
+
border-radius: 1rem;
|
|
502
|
+
background-color: var(--c-context-back);
|
|
503
|
+
outline: none;
|
|
504
|
+
-webkit-transition: 0.2s;
|
|
505
|
+
transition: background-color 0.2s;
|
|
484
506
|
}
|
|
485
|
-
.elbe input[type=range]
|
|
486
|
-
|
|
487
|
-
border: none;
|
|
488
|
-
height: 0.5rem;
|
|
507
|
+
.elbe input[type=range]:hover {
|
|
508
|
+
background-color: var(--c-context-back);
|
|
489
509
|
}
|
|
490
510
|
.elbe input[type=range]::-webkit-slider-thumb {
|
|
491
|
-
border: none;
|
|
492
511
|
-webkit-appearance: none;
|
|
493
512
|
appearance: none;
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
513
|
+
width: 1.5rem;
|
|
514
|
+
height: 1.5rem;
|
|
515
|
+
border-radius: 1rem;
|
|
516
|
+
background: var(--c-context-front);
|
|
517
|
+
border: none;
|
|
518
|
+
outline: none;
|
|
519
|
+
cursor: pointer;
|
|
520
|
+
}
|
|
521
|
+
.elbe input[type=range]::-moz-range-thumb {
|
|
522
|
+
width: 1.5rem;
|
|
523
|
+
height: 1.5rem;
|
|
524
|
+
border-radius: 1rem;
|
|
525
|
+
background: var(--c-context-front);
|
|
526
|
+
border: none;
|
|
527
|
+
outline: none;
|
|
528
|
+
cursor: pointer;
|
|
498
529
|
}
|
|
499
530
|
.elbe input[type=checkbox] {
|
|
500
531
|
-webkit-appearance: none;
|
|
@@ -537,4 +568,14 @@ body,
|
|
|
537
568
|
border: 0.16em solid var(--c-context-border);
|
|
538
569
|
}
|
|
539
570
|
|
|
571
|
+
.toast {
|
|
572
|
+
position: fixed;
|
|
573
|
+
bottom: 1rem;
|
|
574
|
+
right: 1rem;
|
|
575
|
+
z-index: 200;
|
|
576
|
+
left: 50%;
|
|
577
|
+
width: min(40rem, 90%);
|
|
578
|
+
transform: translateX(-50%);
|
|
579
|
+
}
|
|
580
|
+
|
|
540
581
|
/*# sourceMappingURL=elbe.css.map */
|
package/dist/elbe.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../style/elbe.scss","../style/_base.scss","../style/_flex.scss","../style/_components.scss"],"names":[],"mappings":"AAAA;AAAA;AAAA;AAAA;AAOQ;AAMR;EACE;EACA;EACA;EACA;EAEA;EACA;EACA;EAGA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;;;AAGF;AAAA;AAAA;EAGE;EACA;EACA;EACA;EACA;;;AAGF;AAAA;EAEE;EACA;EACA;EACA;;;AAIF;AC3DA;AAoBA;AA6DA;AAUA;AAaA;AA8BA;AC9GA;AAqBA;AAYA;AAkBA;AAqBA;;
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../style/elbe.scss","../style/_base.scss","../style/_flex.scss","../style/_components.scss"],"names":[],"mappings":"AAAA;AAAA;AAAA;AAAA;AAOQ;AAMR;EACE;EACA;EACA;EACA;EAEA;EACA;EACA;EAGA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;;;AAGF;AAAA;AAAA;EAGE;EACA;EACA;EACA;EACA;;;AAGF;AAAA;EAEE;EACA;EACA;EACA;;;AAIF;AC3DA;AAoBA;AA6DA;AAUA;AAaA;AA8BA;AC9GA;AAqBA;AAYA;AAkBA;AAqBA;AC2GA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AFzMA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;;AAGF;EACE;;AAGF;EACE;;AAGF;EACE;;AAMF;EACE;;AAEF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;EACA;EACA;;AAEF;EACE;;AAGF;AAAA;EAEE;;AAGF;EACE;;AAEF;EACE;;AAGF;EACE;EACA;;AACA;EACE;;AAIJ;EACE;;AAGF;EACE;;AAEF;EACE;;AAEF;EACE;;AAGF;EACE;;AAGF;EACE;;AAGF;EACE;;AAKF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;EACA;;AAOF;EACE;;AAGF;EAEE;EACA;EACA;;AAKF;AAAA;EAEE;;AAEF;AAAA;AAAA;AAAA;EAEE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;EACA;;AAKF;EACE;EACA;EACA;EACA;;AAGF;EACE;IACE;;EAEF;IACE;;;ACpJJ;AAAA;AAAA;AAAA;AAAA;EAGE;EACA;EACA;EACA;;AAGF;EACE;;AAGF;EACE;EACA;;AAGF;EACE;EACA;EACA;;AAKF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAKF;EACE;;AAIA;EACE;;AADF;EACE;;AADF;EACE;;AADF;EACE;;AADF;EACE;;AADF;EACE;;AADF;EACE;;AADF;EACE;;AADF;EACE;;AADF;EACE;;AADF;EACE;;AADF;EACE;;AAMJ;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAKF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAKF;EACE;IACE;;EAEF;IACE;;;AAIJ;EACE;IACE;;;AAIJ;EACE;;AClHF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;;AAGF;EACE;;AAGF;EACE;;AAIF;EAIE;EACA;EACA;EACA;EACA;EACA;EACA;AAMA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAJA;EACE;;AAoBJ;EACE;EACA;EACA;;AAGF;EAGE;EACA;EACA;EACA;;AAGF;EAKE;EAEA;EACA;EACA;EACA;EACA;EAEA;EAEA;EAEA;EAEA;EACA;;AAEA;EACE;;AAGF;EACE;EACA;EACA;;AACA;EACE;;AAKN;EACE;EACA;EACA;;AAGF;EACE;EACA;;AAGF;EAGC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACC;EAGD;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;;AAKD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAWE;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAaF;EACE;EACA;EACA;EACA;EACA;EAEA;EACA;EAEA;EACA;;AAEA;EACE;;AAGF;EACE;EACA;EA5BF;EACA;EACA;EACA;EACA;EACA;EACA;;AA0BA;EAhCA;EACA;EACA;EACA;EACA;EACA;EACA;;AAsEF;EACE;EACA;EACA;EAEA;EACA;EAEA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EAEA;EACA;EACA;;AAIF;EACE;EACA;;AACA;EACE;EACA;;AAMJ;EACE;EACA;;AAGF;EACE;EACA;;;AHhOF;EAIE;EACA;EACA;EACA;EACA;EACA;EACA","file":"elbe.css"}
|
package/dist/index.js
CHANGED
|
@@ -1,65 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.Icons = void 0;
|
|
30
|
-
const jsx_runtime_1 = require("preact/jsx-runtime");
|
|
31
|
-
const Lucide = __importStar(require("lucide-react"));
|
|
32
|
-
require("./elbe.css");
|
|
1
|
+
import { jsx as _jsx } from "preact/jsx-runtime";
|
|
2
|
+
import * as Lucide from "lucide-react";
|
|
3
|
+
import "./elbe.css";
|
|
33
4
|
// exports
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
5
|
+
export * from "./bit/bit";
|
|
6
|
+
export * from "./bit/ctrl_bit";
|
|
7
|
+
export * from "./service/s_api";
|
|
8
|
+
export * from "./ui/util/confirm_dialog";
|
|
9
|
+
export * from "./ui/util/toast";
|
|
10
|
+
export * from "./ui/util/util";
|
|
11
|
+
export * from "./ui/components/base/box";
|
|
12
|
+
export * from "./ui/components/base/card";
|
|
13
|
+
export * from "./ui/components/base/padded";
|
|
14
|
+
export * from "./ui/components/button/button";
|
|
15
|
+
export * from "./ui/components/button/choose_button";
|
|
16
|
+
export * from "./ui/components/button/icon_button";
|
|
17
|
+
export * from "./ui/components/button/toggle_button";
|
|
18
|
+
export * from "./ui/components/layout/flex";
|
|
19
|
+
export * from "./ui/components/layout/scaffold";
|
|
20
|
+
export * from "./ui/components/layout/scroll";
|
|
21
|
+
export * from "./ui/components/layout/spaced";
|
|
22
|
+
export * from "./ui/components/input/checkbox";
|
|
23
|
+
export * from "./ui/components/input/input_field";
|
|
24
|
+
export * from "./ui/components/input/range";
|
|
25
|
+
export * from "./ui/components/input/select";
|
|
26
|
+
export * from "./ui/components/input/text_area";
|
|
27
|
+
export * from "./ui/components/badge";
|
|
28
|
+
export * from "./ui/components/dialog";
|
|
29
|
+
export * from "./ui/components/error_view";
|
|
30
|
+
export * from "./ui/components/spinner";
|
|
31
|
+
export * from "./ui/components/text";
|
|
32
|
+
export * from "./ui/theme/theme";
|
|
62
33
|
function None({}) {
|
|
63
|
-
return (
|
|
34
|
+
return _jsx("div", { style: { width: "1.5rem", height: "1.5rem" } });
|
|
64
35
|
}
|
|
65
|
-
|
|
36
|
+
export const Icons = Object.assign(Object.assign({}, Lucide.icons), { None });
|