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.
Files changed (41) hide show
  1. package/README.md +6 -0
  2. package/dist/bit/bit.d.ts +4 -1
  3. package/dist/bit/bit.js +24 -28
  4. package/dist/bit/ctrl_bit.js +47 -28
  5. package/dist/elbe.css +71 -30
  6. package/dist/elbe.css.map +1 -1
  7. package/dist/index.js +33 -62
  8. package/dist/service/s_api.js +62 -49
  9. package/dist/ui/components/badge.js +13 -34
  10. package/dist/ui/components/base/box.js +21 -23
  11. package/dist/ui/components/base/card.js +19 -10
  12. package/dist/ui/components/base/padded.js +25 -16
  13. package/dist/ui/components/button/button.js +30 -22
  14. package/dist/ui/components/button/choose_button.js +7 -10
  15. package/dist/ui/components/button/icon_button.js +36 -26
  16. package/dist/ui/components/button/toggle_button.js +19 -10
  17. package/dist/ui/components/dialog.js +7 -10
  18. package/dist/ui/components/error_view.js +14 -16
  19. package/dist/ui/components/input/checkbox.js +17 -8
  20. package/dist/ui/components/input/input_field.js +28 -23
  21. package/dist/ui/components/input/range.js +26 -9
  22. package/dist/ui/components/input/select.js +16 -7
  23. package/dist/ui/components/input/text_area.js +17 -8
  24. package/dist/ui/components/layout/flex.js +24 -16
  25. package/dist/ui/components/layout/scaffold.d.ts +4 -3
  26. package/dist/ui/components/layout/scaffold.js +28 -18
  27. package/dist/ui/components/layout/scroll.js +10 -14
  28. package/dist/ui/components/layout/spaced.js +3 -6
  29. package/dist/ui/components/spinner.js +16 -19
  30. package/dist/ui/components/text.js +42 -37
  31. package/dist/ui/theme/color_theme.js +36 -42
  32. package/dist/ui/theme/colors.d.ts +2 -3
  33. package/dist/ui/theme/colors.js +42 -78
  34. package/dist/ui/theme/geometry_theme.js +8 -16
  35. package/dist/ui/theme/theme.js +12 -34
  36. package/dist/ui/theme/type_theme.js +11 -39
  37. package/dist/ui/util/confirm_dialog.js +1 -4
  38. package/dist/ui/util/error_view.js +4 -7
  39. package/dist/ui/util/toast.js +1 -4
  40. package/dist/ui/util/util.js +8 -13
  41. 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) => 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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.makeBit = makeBit;
4
- exports.ProvideBit = ProvideBit;
5
- exports.useBit = useBit;
6
- const jsx_runtime_1 = require("preact/jsx-runtime");
7
- const signals_1 = require("@preact/signals");
8
- const preact_1 = require("preact");
9
- const hooks_1 = require("preact/hooks");
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 = (0, signals_1.useSignal)({ loading: true });
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 ?? null);
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 ((0, jsx_runtime_1.jsx)(context.Provider, { value: { ctrl: c, state: s }, children: children }));
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 } = (0, hooks_1.useContext)(context);
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 || (() => (0, jsx_runtime_1.jsx)(spinner_1.Spinner, {})))();
49
+ return (m.onLoading ||
50
+ (() => (_jsx(Column, { cross: "center", children: _jsx(Spinner, {}) }))))();
52
51
  if (v.error)
53
52
  return (m.onError ||
54
- ((e) => (0, jsx_runtime_1.jsx)(error_view_1.ErrorView, { error: e, retry: ctrl.reload ?? null })))(v.error);
55
- return m.onData(v.data ?? null);
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: (_) => (0, jsx_runtime_1.jsx)("div", { children: err }),
73
+ map: (_) => _jsx("div", { children: err }),
75
74
  ctrl: null,
76
75
  signal: null,
77
- onData: () => (0, jsx_runtime_1.jsx)("div", { children: err }),
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
- }
@@ -1,21 +1,35 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StreamControl = exports.WorkerControl = void 0;
4
- exports.CtrlBit = CtrlBit;
5
- const hooks_1 = require("preact/hooks");
6
- const bit_1 = require("./bit");
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: async (d) => {
30
+ onData: (d) => __awaiter(this, void 0, void 0, function* () {
17
31
  try {
18
- await fn(d);
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
- reload = null;
49
+ export class WorkerControl extends BitControl {
50
+ constructor() {
51
+ super(...arguments);
52
+ this.reload = null;
53
+ }
37
54
  }
38
- exports.WorkerControl = WorkerControl;
39
- class StreamControl extends BitControl {
40
- stream = null;
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 (0, bit_1.makeBit)(name);
66
+ return mb(name);
49
67
  }
50
68
  function use(b) {
51
- return (0, bit_1.useBit)(b);
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({ children, ...p }) {
56
- return (0, bit_1.ProvideBit)(context, p, async (p, b, c) => {
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
- await c.reload();
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
- (0, hooks_1.useEffect)(() => () => c.dispose(), []);
92
+ useEffect(() => () => c.dispose(), []);
74
93
  if (c instanceof WorkerControl) {
75
- c.reload = async () => {
94
+ c.reload = () => __awaiter(this, void 0, void 0, function* () {
76
95
  b.emitLoading();
77
96
  try {
78
- b.emit(await c.worker());
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
- background: transparent;
476
- cursor: pointer;
477
- width: 15rem;
478
- }
479
- .elbe input[type=range]::-moz-range-track {
480
- background-color: var(--c-context-border);
481
- border-radius: 100px;
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]::-webkit-slider-runnable-track {
486
- border-radius: 100px;
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
- margin-top: -6px;
495
- border-radius: 100px;
496
- height: 1.2rem;
497
- width: 1.2rem;
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;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ADF;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;EAIE;EACA;EACA;EACA;EACA;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;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;;AAGF;EAEE;EACA;EACA;;AAGF;EAGE;EACA;EACA;EACA;EACA;EACA;EACA;;AAOJ;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","file":"elbe.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../style/elbe.scss","../style/_base.sc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AA;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
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
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
- __exportStar(require("./bit/bit"), exports);
35
- __exportStar(require("./bit/ctrl_bit"), exports);
36
- __exportStar(require("./service/s_api"), exports);
37
- __exportStar(require("./ui/util/confirm_dialog"), exports);
38
- __exportStar(require("./ui/util/toast"), exports);
39
- __exportStar(require("./ui/util/util"), exports);
40
- __exportStar(require("./ui/components/base/box"), exports);
41
- __exportStar(require("./ui/components/base/card"), exports);
42
- __exportStar(require("./ui/components/base/padded"), exports);
43
- __exportStar(require("./ui/components/button/button"), exports);
44
- __exportStar(require("./ui/components/button/choose_button"), exports);
45
- __exportStar(require("./ui/components/button/icon_button"), exports);
46
- __exportStar(require("./ui/components/button/toggle_button"), exports);
47
- __exportStar(require("./ui/components/layout/flex"), exports);
48
- __exportStar(require("./ui/components/layout/scaffold"), exports);
49
- __exportStar(require("./ui/components/layout/scroll"), exports);
50
- __exportStar(require("./ui/components/layout/spaced"), exports);
51
- __exportStar(require("./ui/components/input/checkbox"), exports);
52
- __exportStar(require("./ui/components/input/input_field"), exports);
53
- __exportStar(require("./ui/components/input/range"), exports);
54
- __exportStar(require("./ui/components/input/select"), exports);
55
- __exportStar(require("./ui/components/input/text_area"), exports);
56
- __exportStar(require("./ui/components/badge"), exports);
57
- __exportStar(require("./ui/components/dialog"), exports);
58
- __exportStar(require("./ui/components/error_view"), exports);
59
- __exportStar(require("./ui/components/spinner"), exports);
60
- __exportStar(require("./ui/components/text"), exports);
61
- __exportStar(require("./ui/theme/theme"), exports);
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 (0, jsx_runtime_1.jsx)("div", { style: { width: "1.5rem", height: "1.5rem" } });
34
+ return _jsx("div", { style: { width: "1.5rem", height: "1.5rem" } });
64
35
  }
65
- exports.Icons = { ...Lucide.icons, None };
36
+ export const Icons = Object.assign(Object.assign({}, Lucide.icons), { None });