tgui-core 1.0.13 → 1.0.15
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 +30 -30
- package/dist/{ProgressBar.module-Jzqlebbx.js → ProgressBar.module-BkAFfFy0.js} +4 -4
- package/dist/Section.module-CLVHJ4yA.js +15 -0
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/NumberInput.css +1 -1
- package/dist/assets/Section.css +1 -1
- package/dist/assets/Tabs.css +1 -1
- package/dist/assets/TextArea.css +1 -1
- package/dist/assets/Tooltip.css +1 -0
- package/dist/components/Button.js +97 -97
- package/dist/components/Input.js +28 -28
- package/dist/components/NumberInput.js +24 -24
- package/dist/components/ProgressBar.js +15 -15
- package/dist/components/Section.d.ts +1 -1
- package/dist/components/Section.js +35 -45
- package/dist/components/Slider.js +24 -24
- package/dist/components/Stack.js +35 -35
- package/dist/components/StyleableSection.d.ts +1 -1
- package/dist/components/StyleableSection.js +14 -10
- package/dist/components/Tabs.js +49 -51
- package/dist/components/TextArea.d.ts +1 -1
- package/dist/components/TextArea.js +14 -14
- package/dist/components/Tooltip.js +10 -8
- package/package.json +1 -1
package/dist/components/Input.js
CHANGED
|
@@ -4,46 +4,46 @@ import { classes as k } from "../common/react.js";
|
|
|
4
4
|
import { debounce as B } from "../common/timer.js";
|
|
5
5
|
import { useRef as E, useEffect as R } from "react";
|
|
6
6
|
import { Box as S } from "./Box.js";
|
|
7
|
-
import '../assets/Input.css';const V = "
|
|
7
|
+
import '../assets/Input.css';const V = "_input_17i79_20", F = "_fluid_17i79_35", L = "_baseline_17i79_40", Y = "_inner_17i79_45", q = "_monospace_17i79_71", u = {
|
|
8
8
|
input: V,
|
|
9
9
|
fluid: F,
|
|
10
10
|
baseline: L,
|
|
11
11
|
inner: Y,
|
|
12
12
|
monospace: q
|
|
13
13
|
};
|
|
14
|
-
function _(
|
|
15
|
-
return typeof
|
|
14
|
+
function _(r) {
|
|
15
|
+
return typeof r != "number" && typeof r != "string" ? "" : String(r);
|
|
16
16
|
}
|
|
17
|
-
const z = B((
|
|
18
|
-
function P(
|
|
17
|
+
const z = B((r) => r(), 250);
|
|
18
|
+
function P(r) {
|
|
19
19
|
const {
|
|
20
20
|
autoFocus: d,
|
|
21
21
|
autoSelect: c,
|
|
22
22
|
className: b,
|
|
23
23
|
disabled: g,
|
|
24
|
-
expensive:
|
|
25
|
-
fluid:
|
|
26
|
-
maxLength:
|
|
27
|
-
monospace:
|
|
28
|
-
onChange:
|
|
24
|
+
expensive: T,
|
|
25
|
+
fluid: y,
|
|
26
|
+
maxLength: x,
|
|
27
|
+
monospace: h,
|
|
28
|
+
onChange: n,
|
|
29
29
|
onEnter: i,
|
|
30
30
|
onEscape: o,
|
|
31
31
|
onInput: s,
|
|
32
|
-
placeholder:
|
|
33
|
-
selfClear:
|
|
32
|
+
placeholder: I,
|
|
33
|
+
selfClear: N,
|
|
34
34
|
value: l,
|
|
35
|
-
...
|
|
36
|
-
} =
|
|
35
|
+
...w
|
|
36
|
+
} = r, a = E(null);
|
|
37
37
|
function D(e) {
|
|
38
38
|
var f;
|
|
39
39
|
if (!s)
|
|
40
40
|
return;
|
|
41
|
-
const
|
|
42
|
-
|
|
41
|
+
const t = (f = e.currentTarget) == null ? void 0 : f.value;
|
|
42
|
+
T ? z(() => s(e, t)) : s(e, t);
|
|
43
43
|
}
|
|
44
44
|
function K(e) {
|
|
45
45
|
if (e.key === m.Enter) {
|
|
46
|
-
i == null || i(e, e.currentTarget.value),
|
|
46
|
+
i == null || i(e, e.currentTarget.value), N ? e.currentTarget.value = "" : (e.currentTarget.blur(), n == null || n(e, e.currentTarget.value));
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
49
|
e.key === m.Escape && (o == null || o(e), e.currentTarget.value = _(l), e.currentTarget.blur());
|
|
@@ -52,32 +52,32 @@ function P(n) {
|
|
|
52
52
|
const e = a.current;
|
|
53
53
|
if (!e)
|
|
54
54
|
return;
|
|
55
|
-
const
|
|
56
|
-
e.value !==
|
|
55
|
+
const t = _(l);
|
|
56
|
+
e.value !== t && (e.value = t), !(!d && !c) && setTimeout(() => {
|
|
57
57
|
e.focus(), c && e.select();
|
|
58
58
|
}, 1);
|
|
59
59
|
}, []), /* @__PURE__ */ j(
|
|
60
60
|
S,
|
|
61
61
|
{
|
|
62
62
|
className: k([
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
u.input,
|
|
64
|
+
y && u.fluid,
|
|
65
|
+
h && u.monospace,
|
|
66
66
|
b
|
|
67
67
|
]),
|
|
68
|
-
...
|
|
68
|
+
...w,
|
|
69
69
|
children: [
|
|
70
|
-
/* @__PURE__ */ p("div", { className:
|
|
70
|
+
/* @__PURE__ */ p("div", { className: u.baseline, children: "." }),
|
|
71
71
|
/* @__PURE__ */ p(
|
|
72
72
|
"input",
|
|
73
73
|
{
|
|
74
|
-
className:
|
|
74
|
+
className: u.inner,
|
|
75
75
|
disabled: g,
|
|
76
|
-
maxLength:
|
|
77
|
-
onBlur: (e) =>
|
|
76
|
+
maxLength: x,
|
|
77
|
+
onBlur: (e) => n == null ? void 0 : n(e, e.target.value),
|
|
78
78
|
onChange: D,
|
|
79
79
|
onKeyDown: K,
|
|
80
|
-
placeholder:
|
|
80
|
+
placeholder: I,
|
|
81
81
|
ref: a
|
|
82
82
|
}
|
|
83
83
|
)
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import '../assets/NumberInput.css';var
|
|
2
|
-
var
|
|
3
|
-
var l = (c, d, e) => (
|
|
4
|
-
import { jsxs as
|
|
5
|
-
import { KEY as
|
|
1
|
+
import '../assets/NumberInput.css';var w = Object.defineProperty;
|
|
2
|
+
var E = (c, d, e) => d in c ? w(c, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[d] = e;
|
|
3
|
+
var l = (c, d, e) => (E(c, typeof d != "symbol" ? d + "" : d, e), e);
|
|
4
|
+
import { jsxs as _, jsx as g } from "react/jsx-runtime";
|
|
5
|
+
import { KEY as S } from "../common/keys.js";
|
|
6
6
|
import { clamp as h } from "../common/math.js";
|
|
7
|
-
import { classes as
|
|
8
|
-
import { Component as
|
|
9
|
-
import { AnimatedNumber as
|
|
10
|
-
import { Box as
|
|
11
|
-
const R = "
|
|
7
|
+
import { classes as I } from "../common/react.js";
|
|
8
|
+
import { Component as D, createRef as T } from "react";
|
|
9
|
+
import { AnimatedNumber as F } from "./AnimatedNumber.js";
|
|
10
|
+
import { Box as M } from "./Box.js";
|
|
11
|
+
const R = "_numberInput_4xyrw_20", B = "_fluid_4xyrw_36", K = "_content_4xyrw_40", L = "_barContainer_4xyrw_44", Y = "_bar_4xyrw_44", j = "_inner_4xyrw_61", p = {
|
|
12
12
|
numberInput: R,
|
|
13
13
|
fluid: B,
|
|
14
14
|
content: K,
|
|
@@ -16,11 +16,11 @@ const R = "_numberInput_x4pb3_13", B = "_fluid_x4pb3_29", K = "_content_x4pb3_33
|
|
|
16
16
|
bar: Y,
|
|
17
17
|
inner: j
|
|
18
18
|
};
|
|
19
|
-
class $ extends
|
|
19
|
+
class $ extends D {
|
|
20
20
|
constructor(e) {
|
|
21
21
|
super(e);
|
|
22
22
|
// Ref to the input field to set focus & highlight
|
|
23
|
-
l(this, "inputRef",
|
|
23
|
+
l(this, "inputRef", T());
|
|
24
24
|
// After this time has elapsed we are in drag mode so no editing when dragging ends
|
|
25
25
|
l(this, "dragTimeout");
|
|
26
26
|
// Call onDrag at this interval
|
|
@@ -119,7 +119,7 @@ class $ extends T {
|
|
|
119
119
|
if (o)
|
|
120
120
|
return;
|
|
121
121
|
const { previousValue: s } = this.state;
|
|
122
|
-
if (e.key ===
|
|
122
|
+
if (e.key === S.Enter) {
|
|
123
123
|
const t = h(
|
|
124
124
|
parseFloat(e.currentTarget.value),
|
|
125
125
|
a,
|
|
@@ -137,7 +137,7 @@ class $ extends T {
|
|
|
137
137
|
previousValue: t
|
|
138
138
|
}), s !== t && (i == null || i(t), n == null || n(t));
|
|
139
139
|
} else
|
|
140
|
-
e.key ===
|
|
140
|
+
e.key === S.Escape && this.setState({
|
|
141
141
|
editing: !1
|
|
142
142
|
});
|
|
143
143
|
});
|
|
@@ -159,29 +159,29 @@ class $ extends T {
|
|
|
159
159
|
minValue: r,
|
|
160
160
|
maxValue: f,
|
|
161
161
|
height: v,
|
|
162
|
-
width:
|
|
162
|
+
width: x,
|
|
163
163
|
lineHeight: b,
|
|
164
|
-
fontSize:
|
|
164
|
+
fontSize: y,
|
|
165
165
|
format: V
|
|
166
166
|
} = this.props;
|
|
167
167
|
let m = parseFloat(t.toString());
|
|
168
168
|
e && (m = u);
|
|
169
|
-
const N = /* @__PURE__ */
|
|
170
|
-
o && !e ? /* @__PURE__ */ g(
|
|
169
|
+
const N = /* @__PURE__ */ _("div", { className: p.content, children: [
|
|
170
|
+
o && !e ? /* @__PURE__ */ g(F, { value: m, format: V }) : V ? V(m) : m,
|
|
171
171
|
s ? " " + s : ""
|
|
172
172
|
] });
|
|
173
|
-
return /* @__PURE__ */
|
|
174
|
-
|
|
173
|
+
return /* @__PURE__ */ _(
|
|
174
|
+
M,
|
|
175
175
|
{
|
|
176
|
-
className:
|
|
176
|
+
className: I([
|
|
177
177
|
p.numberInput,
|
|
178
178
|
n && p.fluid,
|
|
179
179
|
i
|
|
180
180
|
]),
|
|
181
|
-
minWidth:
|
|
181
|
+
minWidth: x,
|
|
182
182
|
minHeight: v,
|
|
183
183
|
lineHeight: b,
|
|
184
|
-
fontSize:
|
|
184
|
+
fontSize: y,
|
|
185
185
|
onMouseDown: this.handleDragStart,
|
|
186
186
|
children: [
|
|
187
187
|
/* @__PURE__ */ g("div", { className: p.barContainer, children: /* @__PURE__ */ g(
|
|
@@ -207,7 +207,7 @@ class $ extends T {
|
|
|
207
207
|
display: a ? "inline" : "none",
|
|
208
208
|
height: v,
|
|
209
209
|
lineHeight: b,
|
|
210
|
-
fontSize:
|
|
210
|
+
fontSize: y
|
|
211
211
|
},
|
|
212
212
|
onBlur: this.handleBlur,
|
|
213
213
|
onKeyDown: this.handleKeyDown
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import { keyOfMatchingRange as v, toFixed as y, scale as N, clamp01 as
|
|
1
|
+
import { jsxs as g, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { s as o } from "../ProgressBar.module-BkAFfFy0.js";
|
|
3
|
+
import { keyOfMatchingRange as v, toFixed as y, scale as N, clamp01 as _ } from "../common/math.js";
|
|
4
4
|
import { classes as n } from "../common/react.js";
|
|
5
|
-
import { CSS_COLORS as
|
|
6
|
-
import { computeBoxProps as
|
|
5
|
+
import { CSS_COLORS as B } from "../constants.js";
|
|
6
|
+
import { computeBoxProps as S, computeBoxClassName as O } from "./Box.js";
|
|
7
7
|
const w = (d) => {
|
|
8
8
|
const {
|
|
9
|
-
className:
|
|
9
|
+
className: f,
|
|
10
10
|
value: r,
|
|
11
|
-
minValue:
|
|
11
|
+
minValue: p = 0,
|
|
12
12
|
maxValue: u = 1,
|
|
13
13
|
color: C,
|
|
14
|
-
ranges:
|
|
14
|
+
ranges: h = {},
|
|
15
15
|
children: l,
|
|
16
16
|
...t
|
|
17
|
-
} = d, a = N(r,
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
} = d, a = N(r, p, u), x = l !== void 0, s = C || v(r, h) || "default", e = S(t), c = [
|
|
18
|
+
o.progressBar,
|
|
19
|
+
f,
|
|
20
20
|
O(t)
|
|
21
21
|
], i = {
|
|
22
|
-
width:
|
|
22
|
+
width: _(a) * 100 + "%"
|
|
23
23
|
};
|
|
24
|
-
return
|
|
24
|
+
return B.includes(s) || s === "default" ? c.push(o["color__" + s]) : (e.style = { ...e.style, borderColor: s }, i.backgroundColor = s), /* @__PURE__ */ g("div", { className: n(c), ...e, children: [
|
|
25
25
|
/* @__PURE__ */ m(
|
|
26
26
|
"div",
|
|
27
27
|
{
|
|
28
|
-
className: n([
|
|
28
|
+
className: n([o.fill, o.fill__animated]),
|
|
29
29
|
style: i
|
|
30
30
|
}
|
|
31
31
|
),
|
|
32
|
-
/* @__PURE__ */ m("div", { className:
|
|
32
|
+
/* @__PURE__ */ m("div", { className: o.content, children: x ? l : y(a * 100) + "%" })
|
|
33
33
|
] });
|
|
34
34
|
};
|
|
35
35
|
export {
|
|
@@ -53,7 +53,7 @@ export declare const Section: import('react').ForwardRefExoticComponent<Partial<
|
|
|
53
53
|
onClick: import('react').MouseEventHandler<HTMLDivElement>;
|
|
54
54
|
onContextMenu: import('react').MouseEventHandler<HTMLDivElement>;
|
|
55
55
|
onDoubleClick: import('react').MouseEventHandler<HTMLDivElement>;
|
|
56
|
-
onKeyDown: import('react').KeyboardEventHandler<HTMLDivElement>;
|
|
56
|
+
onKeyDown: import('react').KeyboardEventHandler<HTMLDivElement>;
|
|
57
57
|
onKeyUp: import('react').KeyboardEventHandler<HTMLDivElement>;
|
|
58
58
|
onMouseDown: import('react').MouseEventHandler<HTMLDivElement>;
|
|
59
59
|
onMouseMove: import('react').MouseEventHandler<HTMLDivElement>;
|
|
@@ -1,65 +1,55 @@
|
|
|
1
1
|
import { jsxs as r, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
titleText: C,
|
|
10
|
-
buttons: E,
|
|
11
|
-
rest: P,
|
|
12
|
-
content: d,
|
|
13
|
-
fitted: g,
|
|
14
|
-
fill: k,
|
|
15
|
-
scrollable: A,
|
|
16
|
-
scrollableHorizontal: D
|
|
17
|
-
}, L = v(
|
|
18
|
-
(x, l) => {
|
|
2
|
+
import { s as t } from "../Section.module-CLVHJ4yA.js";
|
|
3
|
+
import { classes as S, canRender as m } from "../common/react.js";
|
|
4
|
+
import { forwardRef as j, useEffect as z } from "react";
|
|
5
|
+
import { addScrollableNode as B, removeScrollableNode as H } from "../events.js";
|
|
6
|
+
import { computeBoxClassName as T, computeBoxProps as y } from "./Box.js";
|
|
7
|
+
const q = j(
|
|
8
|
+
(a, l) => {
|
|
19
9
|
const {
|
|
20
|
-
buttons:
|
|
21
|
-
children:
|
|
22
|
-
className:
|
|
23
|
-
fill:
|
|
24
|
-
fitted:
|
|
25
|
-
onScroll:
|
|
26
|
-
scrollable:
|
|
27
|
-
scrollableHorizontal:
|
|
10
|
+
buttons: c,
|
|
11
|
+
children: u,
|
|
12
|
+
className: p,
|
|
13
|
+
fill: N,
|
|
14
|
+
fitted: b,
|
|
15
|
+
onScroll: h,
|
|
16
|
+
scrollable: i,
|
|
17
|
+
scrollableHorizontal: e,
|
|
28
18
|
title: n,
|
|
29
|
-
container_id:
|
|
30
|
-
...
|
|
31
|
-
} =
|
|
19
|
+
container_id: v,
|
|
20
|
+
...o
|
|
21
|
+
} = a, x = m(n) || m(c);
|
|
32
22
|
return z(() => {
|
|
33
|
-
if (l != null && l.current && !(!
|
|
34
|
-
return
|
|
35
|
-
l != null && l.current &&
|
|
23
|
+
if (l != null && l.current && !(!i && !e))
|
|
24
|
+
return B(l.current), () => {
|
|
25
|
+
l != null && l.current && H(l.current);
|
|
36
26
|
};
|
|
37
27
|
}, []), /* @__PURE__ */ r(
|
|
38
28
|
"div",
|
|
39
29
|
{
|
|
40
|
-
id:
|
|
41
|
-
className:
|
|
30
|
+
id: v || "",
|
|
31
|
+
className: S([
|
|
42
32
|
t.section,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
33
|
+
N && t.fill,
|
|
34
|
+
b && t.fitted,
|
|
35
|
+
i && t.scrollable,
|
|
36
|
+
e && t.scrollableHorizontal,
|
|
37
|
+
p,
|
|
38
|
+
T(o)
|
|
49
39
|
]),
|
|
50
|
-
...
|
|
40
|
+
...y(o),
|
|
51
41
|
children: [
|
|
52
|
-
|
|
42
|
+
x && /* @__PURE__ */ r("div", { className: t.title, children: [
|
|
53
43
|
/* @__PURE__ */ s("span", { className: t.titleText, children: n }),
|
|
54
|
-
/* @__PURE__ */ s("div", { className: t.buttons, children:
|
|
44
|
+
/* @__PURE__ */ s("div", { className: t.buttons, children: c })
|
|
55
45
|
] }),
|
|
56
46
|
/* @__PURE__ */ s("div", { className: t.rest, children: /* @__PURE__ */ s(
|
|
57
47
|
"div",
|
|
58
48
|
{
|
|
59
49
|
className: t.content,
|
|
60
|
-
onScroll:
|
|
50
|
+
onScroll: h,
|
|
61
51
|
ref: l,
|
|
62
|
-
children:
|
|
52
|
+
children: u
|
|
63
53
|
}
|
|
64
54
|
) })
|
|
65
55
|
]
|
|
@@ -68,5 +58,5 @@ import '../assets/Section.css';const B = "_section_upqxx_17", y = "_title_upqxx_
|
|
|
68
58
|
}
|
|
69
59
|
);
|
|
70
60
|
export {
|
|
71
|
-
|
|
61
|
+
q as Section
|
|
72
62
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as s, jsxs as m } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { s as e } from "../ProgressBar.module-BkAFfFy0.js";
|
|
3
3
|
import { keyOfMatchingRange as R, clamp01 as t, scale as f } from "../common/math.js";
|
|
4
4
|
import { classes as _ } from "../common/react.js";
|
|
5
|
-
import { computeBoxClassName as
|
|
6
|
-
import { DraggableControl as
|
|
7
|
-
import '../assets/Slider.css';const
|
|
8
|
-
slider:
|
|
9
|
-
cursorOffset:
|
|
10
|
-
cursor:
|
|
11
|
-
pointer:
|
|
12
|
-
popupValue:
|
|
5
|
+
import { computeBoxClassName as $, computeBoxProps as q } from "./Box.js";
|
|
6
|
+
import { DraggableControl as A } from "./DraggableControl.js";
|
|
7
|
+
import '../assets/Slider.css';const G = "_slider_1assx_9", H = "_cursorOffset_1assx_13", I = "_cursor_1assx_13", J = "_pointer_1assx_30", K = "_popupValue_1assx_41", a = {
|
|
8
|
+
slider: G,
|
|
9
|
+
cursorOffset: H,
|
|
10
|
+
cursor: I,
|
|
11
|
+
pointer: J,
|
|
12
|
+
popupValue: K
|
|
13
13
|
};
|
|
14
|
-
function
|
|
14
|
+
function Y(h) {
|
|
15
15
|
const {
|
|
16
16
|
// Draggable props (passthrough)
|
|
17
|
-
animated:
|
|
18
|
-
format:
|
|
17
|
+
animated: v,
|
|
18
|
+
format: g,
|
|
19
19
|
maxValue: o,
|
|
20
20
|
minValue: r,
|
|
21
21
|
onChange: x,
|
|
@@ -29,16 +29,16 @@ function Z(h) {
|
|
|
29
29
|
className: w,
|
|
30
30
|
fillValue: l,
|
|
31
31
|
color: M,
|
|
32
|
-
ranges:
|
|
32
|
+
ranges: B = {},
|
|
33
33
|
children: i,
|
|
34
34
|
...c
|
|
35
|
-
} = h,
|
|
35
|
+
} = h, F = i !== void 0;
|
|
36
36
|
return /* @__PURE__ */ s(
|
|
37
|
-
|
|
37
|
+
A,
|
|
38
38
|
{
|
|
39
39
|
dragMatrix: [1, 0],
|
|
40
|
-
animated:
|
|
41
|
-
format:
|
|
40
|
+
animated: v,
|
|
41
|
+
format: g,
|
|
42
42
|
maxValue: o,
|
|
43
43
|
minValue: r,
|
|
44
44
|
onChange: x,
|
|
@@ -48,7 +48,7 @@ function Z(h) {
|
|
|
48
48
|
suppressFlicker: C,
|
|
49
49
|
unit: D,
|
|
50
50
|
value: O,
|
|
51
|
-
children: (
|
|
51
|
+
children: (S) => {
|
|
52
52
|
const {
|
|
53
53
|
displayElement: n,
|
|
54
54
|
displayValue: p,
|
|
@@ -56,11 +56,11 @@ function Z(h) {
|
|
|
56
56
|
handleDragStart: k,
|
|
57
57
|
inputElement: E,
|
|
58
58
|
value: P
|
|
59
|
-
} =
|
|
59
|
+
} = S, b = l != null, u = f(
|
|
60
60
|
l ?? p,
|
|
61
61
|
r,
|
|
62
62
|
o
|
|
63
|
-
), d = f(p, r, o), z = M || R(l ?? P,
|
|
63
|
+
), d = f(p, r, o), z = M || R(l ?? P, B) || "default";
|
|
64
64
|
return /* @__PURE__ */ m(
|
|
65
65
|
"div",
|
|
66
66
|
{
|
|
@@ -69,9 +69,9 @@ function Z(h) {
|
|
|
69
69
|
e.progressBar,
|
|
70
70
|
e["color__" + z],
|
|
71
71
|
w,
|
|
72
|
-
|
|
72
|
+
$(c)
|
|
73
73
|
]),
|
|
74
|
-
...
|
|
74
|
+
...q(c),
|
|
75
75
|
onMouseDown: k,
|
|
76
76
|
children: [
|
|
77
77
|
/* @__PURE__ */ s(
|
|
@@ -110,7 +110,7 @@ function Z(h) {
|
|
|
110
110
|
]
|
|
111
111
|
}
|
|
112
112
|
),
|
|
113
|
-
/* @__PURE__ */ s("div", { className: e.content, children:
|
|
113
|
+
/* @__PURE__ */ s("div", { className: e.content, children: F ? i : n }),
|
|
114
114
|
E
|
|
115
115
|
]
|
|
116
116
|
}
|
|
@@ -120,5 +120,5 @@ function Z(h) {
|
|
|
120
120
|
);
|
|
121
121
|
}
|
|
122
122
|
export {
|
|
123
|
-
|
|
123
|
+
Y as Slider
|
|
124
124
|
};
|
package/dist/components/Stack.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { classes as
|
|
3
|
-
import { computeFlexClassName as f, computeFlexProps as w, computeFlexItemProps as
|
|
4
|
-
import { computeBoxClassName as
|
|
5
|
-
import '../assets/Stack.css';const h = "_fill_wrul1_9", p = "_horizontal_wrul1_13", z = "_item_wrul1_13", x = "_vertical_wrul1_20", N = "_reverse_wrul1_27",
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { classes as o } from "../common/react.js";
|
|
3
|
+
import { computeFlexClassName as f, computeFlexProps as w, computeFlexItemProps as _ } from "./Flex.js";
|
|
4
|
+
import { computeBoxClassName as n } from "./Box.js";
|
|
5
|
+
import '../assets/Stack.css';const h = "_fill_wrul1_9", p = "_horizontal_wrul1_13", z = "_item_wrul1_13", x = "_vertical_wrul1_20", N = "_reverse_wrul1_27", b = "_reverse__vertical_wrul1_35", S = "_zebra_wrul1_43", k = "_divider_wrul1_47", F = "_divider__hidden_wrul1_47", e = {
|
|
6
6
|
fill: h,
|
|
7
7
|
horizontal: p,
|
|
8
8
|
item: z,
|
|
9
9
|
vertical: x,
|
|
10
10
|
reverse: N,
|
|
11
|
-
reverse__vertical:
|
|
12
|
-
zebra:
|
|
13
|
-
divider:
|
|
11
|
+
reverse__vertical: b,
|
|
12
|
+
zebra: S,
|
|
13
|
+
divider: k,
|
|
14
14
|
divider__hidden: F
|
|
15
15
|
};
|
|
16
|
-
function
|
|
17
|
-
const { className: s, vertical:
|
|
18
|
-
return /* @__PURE__ */
|
|
16
|
+
function a(t) {
|
|
17
|
+
const { className: s, vertical: r, fill: i, reverse: c, zebra: d, ...v } = t, m = r ? "column" : "row", u = c ? "-reverse" : "";
|
|
18
|
+
return /* @__PURE__ */ l(
|
|
19
19
|
"div",
|
|
20
20
|
{
|
|
21
|
-
className:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
d &&
|
|
25
|
-
|
|
21
|
+
className: o([
|
|
22
|
+
i && e.fill,
|
|
23
|
+
r ? e.vertical : e.horizontal,
|
|
24
|
+
d && e.zebra,
|
|
25
|
+
c && e[`reverse${r ? "__vertical" : ""}`],
|
|
26
26
|
s,
|
|
27
|
-
f(
|
|
27
|
+
f(t)
|
|
28
28
|
]),
|
|
29
29
|
...w({
|
|
30
30
|
direction: `${m}${u}`,
|
|
@@ -33,35 +33,35 @@ function n(i) {
|
|
|
33
33
|
}
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
|
-
function I(
|
|
37
|
-
const { className: s, innerRef:
|
|
38
|
-
return /* @__PURE__ */
|
|
36
|
+
function I(t) {
|
|
37
|
+
const { className: s, innerRef: r, ...i } = t;
|
|
38
|
+
return /* @__PURE__ */ l(
|
|
39
39
|
"div",
|
|
40
40
|
{
|
|
41
|
-
className:
|
|
42
|
-
ref:
|
|
43
|
-
...
|
|
41
|
+
className: o([e.item, s, n(i)]),
|
|
42
|
+
ref: r,
|
|
43
|
+
..._(i)
|
|
44
44
|
}
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
function P(
|
|
49
|
-
const { className: s, hidden:
|
|
50
|
-
return /* @__PURE__ */
|
|
47
|
+
a.Item = I;
|
|
48
|
+
function P(t) {
|
|
49
|
+
const { className: s, hidden: r, ...i } = t;
|
|
50
|
+
return /* @__PURE__ */ l(
|
|
51
51
|
"div",
|
|
52
52
|
{
|
|
53
|
-
className:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
className: o([
|
|
54
|
+
e.item,
|
|
55
|
+
e.divider,
|
|
56
|
+
r && e.divider__hidden,
|
|
57
57
|
s,
|
|
58
|
-
|
|
58
|
+
n(i)
|
|
59
59
|
]),
|
|
60
|
-
...
|
|
60
|
+
..._(i)
|
|
61
61
|
}
|
|
62
62
|
);
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
a.Divider = P;
|
|
65
65
|
export {
|
|
66
|
-
|
|
66
|
+
a as Stack
|
|
67
67
|
};
|
|
@@ -7,5 +7,5 @@ type Props = Partial<{
|
|
|
7
7
|
title: ReactNode;
|
|
8
8
|
titleSubtext: string;
|
|
9
9
|
}> & PropsWithChildren;
|
|
10
|
-
export declare
|
|
10
|
+
export declare function StyleableSection(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsxs as s, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { s as t } from "../Section.module-CLVHJ4yA.js";
|
|
3
|
+
import { Box as e } from "./Box.js";
|
|
4
|
+
function h(i) {
|
|
5
|
+
const { children: r, titleStyle: c, titleSubtext: n, title: o, textStyle: a, style: m } = i;
|
|
6
|
+
return /* @__PURE__ */ s(e, { style: m, children: [
|
|
7
|
+
/* @__PURE__ */ s(e, { className: t.title, style: c, children: [
|
|
8
|
+
/* @__PURE__ */ l(e, { className: t.titleText, style: a, children: o }),
|
|
9
|
+
/* @__PURE__ */ l("div", { className: t.buttons, children: n })
|
|
10
|
+
] }),
|
|
11
|
+
/* @__PURE__ */ l(e, { className: t.rest, children: /* @__PURE__ */ l(e, { className: t.content, children: r }) })
|
|
12
|
+
] });
|
|
13
|
+
}
|
|
10
14
|
export {
|
|
11
|
-
|
|
15
|
+
h as StyleableSection
|
|
12
16
|
};
|