tgui-core 1.1.23 → 1.2.0
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/dist/Section.module-qhQWhlUX.js +18 -0
- package/dist/assets/ImageButton.css +5 -0
- package/dist/assets/Section.css +1 -1
- package/dist/components/Box.d.ts +2 -0
- package/dist/components/Button.d.ts +2 -0
- package/dist/components/Button.js +178 -175
- package/dist/components/Collapsible.d.ts +2 -0
- package/dist/components/Collapsible.js +24 -16
- package/dist/components/DraggableControl.js +4 -6
- package/dist/components/ImageButton.d.ts +61 -0
- package/dist/components/ImageButton.js +218 -0
- package/dist/components/Input.js +47 -41
- package/dist/components/NoticeBox.d.ts +4 -1
- package/dist/components/NoticeBox.js +31 -30
- package/dist/components/NumberInput.js +99 -99
- package/dist/components/Section.d.ts +27 -34
- package/dist/components/Section.js +67 -60
- package/dist/components/Slider.d.ts +2 -0
- package/dist/components/StyleableSection.js +1 -1
- package/dist/components/Tabs.d.ts +1 -0
- package/dist/components/Tabs.js +69 -64
- package/dist/components/TextArea.d.ts +2 -0
- package/dist/components/TextArea.js +36 -36
- package/dist/components/TimeDisplay.js +8 -8
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +60 -58
- package/package.json +1 -1
- package/dist/Section.module-CLVHJ4yA.js +0 -15
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import '../assets/NumberInput.css';var
|
|
2
|
-
var
|
|
3
|
-
var l = (c, d, e) =>
|
|
4
|
-
import { jsxs as _, jsx as
|
|
5
|
-
import { Component as
|
|
6
|
-
import { KEY as
|
|
7
|
-
import { clamp as
|
|
8
|
-
import { classes as
|
|
9
|
-
import { AnimatedNumber as
|
|
10
|
-
import { Box as
|
|
11
|
-
const
|
|
12
|
-
numberInput:
|
|
13
|
-
fluid:
|
|
14
|
-
content:
|
|
15
|
-
barContainer:
|
|
16
|
-
bar:
|
|
17
|
-
inner:
|
|
1
|
+
import '../assets/NumberInput.css';var N = Object.defineProperty;
|
|
2
|
+
var w = (c, d, e) => d in c ? N(c, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[d] = e;
|
|
3
|
+
var l = (c, d, e) => w(c, typeof d != "symbol" ? d + "" : d, e);
|
|
4
|
+
import { jsxs as _, jsx as V } from "react/jsx-runtime";
|
|
5
|
+
import { Component as E, createRef as I } from "react";
|
|
6
|
+
import { KEY as D, isEscape as M } from "../common/keys.js";
|
|
7
|
+
import { clamp as g, round as T } from "../common/math.js";
|
|
8
|
+
import { classes as F } from "../common/react.js";
|
|
9
|
+
import { AnimatedNumber as R } from "./AnimatedNumber.js";
|
|
10
|
+
import { Box as Y } from "./Box.js";
|
|
11
|
+
const B = "_numberInput_4xyrw_20", K = "_fluid_4xyrw_36", L = "_content_4xyrw_40", z = "_barContainer_4xyrw_44", j = "_bar_4xyrw_44", k = "_inner_4xyrw_61", p = {
|
|
12
|
+
numberInput: B,
|
|
13
|
+
fluid: K,
|
|
14
|
+
content: L,
|
|
15
|
+
barContainer: z,
|
|
16
|
+
bar: j,
|
|
17
|
+
inner: k
|
|
18
18
|
};
|
|
19
|
-
class
|
|
19
|
+
class J extends E {
|
|
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", I());
|
|
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
|
|
@@ -34,74 +34,74 @@ class $ extends I {
|
|
|
34
34
|
origin: 0
|
|
35
35
|
});
|
|
36
36
|
l(this, "handleDragStart", (e) => {
|
|
37
|
-
const { value:
|
|
38
|
-
if (
|
|
37
|
+
const { value: o, disabled: a } = this.props, { editing: s } = this.state;
|
|
38
|
+
if (a || s)
|
|
39
39
|
return;
|
|
40
40
|
document.body.style["pointer-events"] = "none";
|
|
41
|
-
const
|
|
41
|
+
const r = parseFloat(o.toString());
|
|
42
42
|
this.setState({
|
|
43
43
|
dragging: !1,
|
|
44
44
|
origin: e.screenY,
|
|
45
|
-
currentValue:
|
|
46
|
-
previousValue:
|
|
45
|
+
currentValue: r,
|
|
46
|
+
previousValue: r
|
|
47
47
|
}), this.dragTimeout = setTimeout(() => {
|
|
48
48
|
this.setState({
|
|
49
49
|
dragging: !0
|
|
50
50
|
});
|
|
51
51
|
}, 250), this.dragInterval = setInterval(() => {
|
|
52
|
-
const { dragging:
|
|
53
|
-
|
|
54
|
-
previousValue:
|
|
55
|
-
}),
|
|
52
|
+
const { dragging: u, currentValue: i, previousValue: t } = this.state, { onDrag: n } = this.props;
|
|
53
|
+
u && i !== t && (this.setState({
|
|
54
|
+
previousValue: i
|
|
55
|
+
}), n == null || n(i));
|
|
56
56
|
}, 400), document.addEventListener("mousemove", this.handleDragMove), document.addEventListener("mouseup", this.handleDragEnd);
|
|
57
57
|
});
|
|
58
58
|
l(this, "handleDragMove", (e) => {
|
|
59
|
-
const { minValue:
|
|
60
|
-
|
|
61
|
-
const t = { ...
|
|
62
|
-
if (
|
|
63
|
-
const f =
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
a
|
|
67
|
-
|
|
68
|
-
)
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
), t.origin = e.screenY;
|
|
73
|
-
} else Math.abs(
|
|
59
|
+
const { minValue: o, maxValue: a, step: s, stepPixelSize: r, disabled: u } = this.props;
|
|
60
|
+
u || this.setState((i) => {
|
|
61
|
+
const t = { ...i }, n = t.origin - e.screenY;
|
|
62
|
+
if (i.dragging) {
|
|
63
|
+
const f = r || 1, m = g(
|
|
64
|
+
t.currentValue + n * s / f,
|
|
65
|
+
o - s,
|
|
66
|
+
a + s
|
|
67
|
+
);
|
|
68
|
+
Math.abs(m - t.currentValue) >= s ? (t.currentValue = g(
|
|
69
|
+
T(m / s, 0) * s,
|
|
70
|
+
o,
|
|
71
|
+
a
|
|
72
|
+
), t.origin = e.screenY) : Math.abs(n) > f && (t.origin = e.screenY);
|
|
73
|
+
} else Math.abs(n) > 4 && (t.dragging = !0);
|
|
74
74
|
return t;
|
|
75
75
|
});
|
|
76
76
|
});
|
|
77
77
|
l(this, "handleDragEnd", (e) => {
|
|
78
|
-
const { dragging:
|
|
79
|
-
if (!
|
|
78
|
+
const { dragging: o, currentValue: a } = this.state, { onDrag: s, onChange: r, disabled: u } = this.props;
|
|
79
|
+
if (!u) {
|
|
80
80
|
if (document.body.style["pointer-events"] = "auto", clearInterval(this.dragInterval), clearTimeout(this.dragTimeout), this.setState({
|
|
81
81
|
dragging: !1,
|
|
82
|
-
editing: !
|
|
83
|
-
previousValue:
|
|
84
|
-
}),
|
|
85
|
-
|
|
82
|
+
editing: !o,
|
|
83
|
+
previousValue: a
|
|
84
|
+
}), o)
|
|
85
|
+
r == null || r(a), s == null || s(a);
|
|
86
86
|
else if (this.inputRef) {
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
},
|
|
87
|
+
const i = this.inputRef.current;
|
|
88
|
+
i && (i.value = `${a}`, setTimeout(() => {
|
|
89
|
+
i.focus(), i.select();
|
|
90
|
+
}, 10));
|
|
91
91
|
}
|
|
92
92
|
document.removeEventListener("mousemove", this.handleDragMove), document.removeEventListener("mouseup", this.handleDragEnd);
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
95
|
l(this, "handleBlur", (e) => {
|
|
96
|
-
const { editing:
|
|
97
|
-
if (t || !
|
|
96
|
+
const { editing: o, previousValue: a } = this.state, { minValue: s, maxValue: r, onChange: u, onDrag: i, disabled: t } = this.props;
|
|
97
|
+
if (t || !o)
|
|
98
98
|
return;
|
|
99
|
-
const
|
|
99
|
+
const n = g(
|
|
100
100
|
parseFloat(e.target.value),
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
s,
|
|
102
|
+
r
|
|
103
103
|
);
|
|
104
|
-
if (isNaN(
|
|
104
|
+
if (isNaN(n)) {
|
|
105
105
|
this.setState({
|
|
106
106
|
editing: !1
|
|
107
107
|
});
|
|
@@ -109,20 +109,20 @@ class $ extends I {
|
|
|
109
109
|
}
|
|
110
110
|
this.setState({
|
|
111
111
|
editing: !1,
|
|
112
|
-
currentValue:
|
|
113
|
-
previousValue:
|
|
114
|
-
}),
|
|
112
|
+
currentValue: n,
|
|
113
|
+
previousValue: n
|
|
114
|
+
}), a !== n && (u == null || u(n), i == null || i(n));
|
|
115
115
|
});
|
|
116
116
|
l(this, "handleKeyDown", (e) => {
|
|
117
|
-
const { minValue:
|
|
118
|
-
if (
|
|
117
|
+
const { minValue: o, maxValue: a, onChange: s, onDrag: r, disabled: u } = this.props;
|
|
118
|
+
if (u)
|
|
119
119
|
return;
|
|
120
|
-
const { previousValue:
|
|
121
|
-
if (e.key ===
|
|
122
|
-
const t =
|
|
120
|
+
const { previousValue: i } = this.state;
|
|
121
|
+
if (e.key === D.Enter) {
|
|
122
|
+
const t = g(
|
|
123
123
|
parseFloat(e.currentTarget.value),
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
o,
|
|
125
|
+
a
|
|
126
126
|
);
|
|
127
127
|
if (isNaN(t)) {
|
|
128
128
|
this.setState({
|
|
@@ -134,8 +134,8 @@ class $ extends I {
|
|
|
134
134
|
editing: !1,
|
|
135
135
|
currentValue: t,
|
|
136
136
|
previousValue: t
|
|
137
|
-
}),
|
|
138
|
-
} else e.key
|
|
137
|
+
}), i !== t && (s == null || s(t), r == null || r(t));
|
|
138
|
+
} else M(e.key) && this.setState({
|
|
139
139
|
editing: !1
|
|
140
140
|
});
|
|
141
141
|
});
|
|
@@ -148,62 +148,62 @@ class $ extends I {
|
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
render() {
|
|
151
|
-
const { dragging: e, editing:
|
|
152
|
-
className:
|
|
153
|
-
fluid:
|
|
154
|
-
animated:
|
|
155
|
-
unit:
|
|
151
|
+
const { dragging: e, editing: o, currentValue: a } = this.state, {
|
|
152
|
+
className: s,
|
|
153
|
+
fluid: r,
|
|
154
|
+
animated: u,
|
|
155
|
+
unit: i,
|
|
156
156
|
value: t,
|
|
157
|
-
minValue:
|
|
157
|
+
minValue: n,
|
|
158
158
|
maxValue: f,
|
|
159
|
-
height:
|
|
160
|
-
width:
|
|
159
|
+
height: m,
|
|
160
|
+
width: S,
|
|
161
161
|
lineHeight: b,
|
|
162
162
|
fontSize: y,
|
|
163
|
-
format:
|
|
163
|
+
format: v
|
|
164
164
|
} = this.props;
|
|
165
|
-
let
|
|
166
|
-
e && (
|
|
167
|
-
const
|
|
168
|
-
|
|
169
|
-
|
|
165
|
+
let h = parseFloat(t.toString());
|
|
166
|
+
e && (h = a);
|
|
167
|
+
const x = /* @__PURE__ */ _("div", { className: p.content, children: [
|
|
168
|
+
u && !e ? /* @__PURE__ */ V(R, { value: h, format: v }) : v ? v(h) : h,
|
|
169
|
+
i ? " " + i : ""
|
|
170
170
|
] });
|
|
171
171
|
return /* @__PURE__ */ _(
|
|
172
|
-
|
|
172
|
+
Y,
|
|
173
173
|
{
|
|
174
|
-
className:
|
|
174
|
+
className: F([
|
|
175
175
|
p.numberInput,
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
r && p.fluid,
|
|
177
|
+
s
|
|
178
178
|
]),
|
|
179
|
-
minWidth:
|
|
180
|
-
minHeight:
|
|
179
|
+
minWidth: S,
|
|
180
|
+
minHeight: m,
|
|
181
181
|
lineHeight: b,
|
|
182
182
|
fontSize: y,
|
|
183
183
|
onMouseDown: this.handleDragStart,
|
|
184
184
|
children: [
|
|
185
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ V("div", { className: p.barContainer, children: /* @__PURE__ */ V(
|
|
186
186
|
"div",
|
|
187
187
|
{
|
|
188
188
|
className: p.bar,
|
|
189
189
|
style: {
|
|
190
|
-
height:
|
|
191
|
-
(
|
|
190
|
+
height: g(
|
|
191
|
+
(h - n) / (f - n) * 100,
|
|
192
192
|
0,
|
|
193
193
|
100
|
|
194
194
|
) + "%"
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
) }),
|
|
198
|
-
|
|
199
|
-
/* @__PURE__ */
|
|
198
|
+
x,
|
|
199
|
+
/* @__PURE__ */ V(
|
|
200
200
|
"input",
|
|
201
201
|
{
|
|
202
202
|
ref: this.inputRef,
|
|
203
203
|
className: p.inner,
|
|
204
204
|
style: {
|
|
205
|
-
display:
|
|
206
|
-
height:
|
|
205
|
+
display: o ? "inline" : "none",
|
|
206
|
+
height: m,
|
|
207
207
|
lineHeight: b,
|
|
208
208
|
fontSize: y
|
|
209
209
|
},
|
|
@@ -217,5 +217,5 @@ class $ extends I {
|
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
export {
|
|
220
|
-
|
|
220
|
+
J as NumberInput
|
|
221
221
|
};
|
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { BoxProps } from './Box';
|
|
2
3
|
|
|
4
|
+
type Props = Partial<{
|
|
5
|
+
/** Buttons to render aside the section title. */
|
|
6
|
+
buttons: ReactNode;
|
|
7
|
+
/** id to assosiate with the parent div element used by this section, for uses with procs like getElementByID */
|
|
8
|
+
container_id: string;
|
|
9
|
+
/** If true, fills all available vertical space. */
|
|
10
|
+
fill: boolean;
|
|
11
|
+
/** If true, removes all section padding. */
|
|
12
|
+
fitted: boolean;
|
|
13
|
+
/** If true, fills the area without forcing height to 100% */
|
|
14
|
+
flexGrow: boolean;
|
|
15
|
+
/** If true, removes the section top padding */
|
|
16
|
+
noTopPadding: boolean;
|
|
17
|
+
/** @member Callback function for the `scroll` event */
|
|
18
|
+
onScroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
19
|
+
/** Shows or hides the scrollbar. */
|
|
20
|
+
scrollable: boolean;
|
|
21
|
+
/** Shows or hides the horizontal scrollbar. */
|
|
22
|
+
scrollableHorizontal: boolean;
|
|
23
|
+
/** If true, filly the area except for -3rem */
|
|
24
|
+
stretchContents: boolean;
|
|
25
|
+
/** Title of the section. */
|
|
26
|
+
title: ReactNode;
|
|
27
|
+
}> & BoxProps;
|
|
3
28
|
/**
|
|
4
29
|
* ## Section
|
|
5
30
|
* Section is a surface that displays content and actions on a single topic.
|
|
@@ -27,37 +52,5 @@ import { ReactNode } from 'react';
|
|
|
27
52
|
* </Section>
|
|
28
53
|
* ```
|
|
29
54
|
*/
|
|
30
|
-
export declare const Section: import(
|
|
31
|
-
|
|
32
|
-
buttons: ReactNode;
|
|
33
|
-
/** id to assosiate with the parent div element used by this section, for uses with procs like getElementByID */
|
|
34
|
-
container_id: string;
|
|
35
|
-
/** If true, fills all available vertical space. */
|
|
36
|
-
fill: boolean;
|
|
37
|
-
/** If true, removes all section padding. */
|
|
38
|
-
fitted: boolean;
|
|
39
|
-
/** @member Callback function for the `scroll` event */
|
|
40
|
-
onScroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
41
|
-
/** Shows or hides the scrollbar. */
|
|
42
|
-
scrollable: boolean;
|
|
43
|
-
/** Shows or hides the horizontal scrollbar. */
|
|
44
|
-
scrollableHorizontal: boolean;
|
|
45
|
-
/** Title of the section. */
|
|
46
|
-
title: ReactNode;
|
|
47
|
-
}> & Partial<{
|
|
48
|
-
as: string;
|
|
49
|
-
children: ReactNode;
|
|
50
|
-
className: string | import('../common/react').BooleanLike;
|
|
51
|
-
style: import('react').CSSProperties;
|
|
52
|
-
}> & Partial<Record<"bold" | "italic" | "nowrap" | "fillPositionedParent" | "inline" | "preserveWhitespace", boolean>> & Partial<Record<"fontWeight" | "textAlign" | "bottom" | "fontFamily" | "fontSize" | "height" | "left" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "overflow" | "overflowX" | "overflowY" | "position" | "right" | "top" | "verticalAlign" | "width" | "color" | "backgroundColor" | "align" | "lineHeight" | "m" | "mb" | "ml" | "mr" | "mt" | "mx" | "my" | "p" | "pb" | "pl" | "pr" | "pt" | "px" | "py" | "textColor", string | import('../common/react').BooleanLike>> & Partial<{
|
|
53
|
-
onClick: import('react').MouseEventHandler<HTMLDivElement>;
|
|
54
|
-
onContextMenu: import('react').MouseEventHandler<HTMLDivElement>;
|
|
55
|
-
onDoubleClick: import('react').MouseEventHandler<HTMLDivElement>;
|
|
56
|
-
onKeyDown: import('react').KeyboardEventHandler<HTMLDivElement>;
|
|
57
|
-
onKeyUp: import('react').KeyboardEventHandler<HTMLDivElement>;
|
|
58
|
-
onMouseDown: import('react').MouseEventHandler<HTMLDivElement>;
|
|
59
|
-
onMouseMove: import('react').MouseEventHandler<HTMLDivElement>;
|
|
60
|
-
onMouseOver: import('react').MouseEventHandler<HTMLDivElement>;
|
|
61
|
-
onMouseUp: import('react').MouseEventHandler<HTMLDivElement>;
|
|
62
|
-
onScroll: import('react').UIEventHandler<HTMLDivElement>;
|
|
63
|
-
}> & import('react').RefAttributes<HTMLDivElement>>;
|
|
55
|
+
export declare const Section: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
export {};
|
|
@@ -1,62 +1,69 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import { addScrollableNode as
|
|
4
|
-
import { classes as
|
|
5
|
-
import { s as
|
|
6
|
-
import { computeBoxClassName as
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
1
|
+
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as P, useEffect as g } from "react";
|
|
3
|
+
import { addScrollableNode as j, removeScrollableNode as z } from "../common/events.js";
|
|
4
|
+
import { classes as d, canRender as m } from "../common/react.js";
|
|
5
|
+
import { s as e } from "../Section.module-qhQWhlUX.js";
|
|
6
|
+
import { computeBoxClassName as B, computeBoxProps as H } from "./Box.js";
|
|
7
|
+
const _ = (f) => {
|
|
8
|
+
const {
|
|
9
|
+
buttons: o,
|
|
10
|
+
children: u,
|
|
11
|
+
className: p,
|
|
12
|
+
fill: N,
|
|
13
|
+
fitted: h,
|
|
14
|
+
flexGrow: b,
|
|
15
|
+
noTopPadding: x,
|
|
16
|
+
onScroll: v,
|
|
17
|
+
scrollable: s,
|
|
18
|
+
scrollableHorizontal: n,
|
|
19
|
+
stretchContents: S,
|
|
20
|
+
title: c,
|
|
21
|
+
container_id: T,
|
|
22
|
+
...i
|
|
23
|
+
} = f, t = P(null), C = m(c) || m(o);
|
|
24
|
+
return g(() => {
|
|
25
|
+
if (!(t != null && t.current) || !s && !n) return;
|
|
26
|
+
const l = t.current;
|
|
27
|
+
return j(l), () => {
|
|
28
|
+
l && z(l);
|
|
29
|
+
};
|
|
30
|
+
}, []), /* @__PURE__ */ a(
|
|
31
|
+
"div",
|
|
32
|
+
{
|
|
33
|
+
id: T || "",
|
|
34
|
+
className: d([
|
|
35
|
+
e.section,
|
|
36
|
+
N && e.fill,
|
|
37
|
+
h && e.fitted,
|
|
38
|
+
s && e.scrollable,
|
|
39
|
+
n && e.scrollableHorizontal,
|
|
40
|
+
b && e.sectionFlex,
|
|
41
|
+
p,
|
|
42
|
+
B(i)
|
|
43
|
+
]),
|
|
44
|
+
...H(i),
|
|
45
|
+
children: [
|
|
46
|
+
C && /* @__PURE__ */ a("div", { className: e.title, children: [
|
|
47
|
+
/* @__PURE__ */ r("span", { className: e.titleText, children: c }),
|
|
48
|
+
/* @__PURE__ */ r("div", { className: e.buttons, children: o })
|
|
49
|
+
] }),
|
|
50
|
+
/* @__PURE__ */ r("div", { className: e.rest, children: /* @__PURE__ */ r(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
className: d([
|
|
54
|
+
e.content,
|
|
55
|
+
!!S && e.stretchContents,
|
|
56
|
+
!!x && e.noTopPadding
|
|
57
|
+
]),
|
|
58
|
+
onScroll: v,
|
|
59
|
+
ref: t,
|
|
60
|
+
children: u
|
|
61
|
+
}
|
|
62
|
+
) })
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
};
|
|
60
67
|
export {
|
|
61
|
-
|
|
68
|
+
_ as Section
|
|
62
69
|
};
|
|
@@ -15,6 +15,8 @@ type Props = {
|
|
|
15
15
|
className: string;
|
|
16
16
|
/** Color of the slider. */
|
|
17
17
|
color: string;
|
|
18
|
+
/** Disables the slider. */
|
|
19
|
+
disabled: boolean;
|
|
18
20
|
/** If set, this value will be used to set the fill percentage of the progress bar filler independently of the main value. */
|
|
19
21
|
fillValue: number;
|
|
20
22
|
/** Format value using this function before displaying it. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as s, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { s as t } from "../Section.module-
|
|
2
|
+
import { s as t } from "../Section.module-qhQWhlUX.js";
|
|
3
3
|
import { Box as e } from "./Box.js";
|
|
4
4
|
function h(i) {
|
|
5
5
|
const { children: r, titleStyle: c, titleSubtext: n, title: o, textStyle: a, style: m } = i;
|