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.
@@ -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 = "_input_upnwi_13", F = "_fluid_upnwi_28", L = "_baseline_upnwi_33", Y = "_inner_upnwi_38", q = "_monospace_upnwi_64", t = {
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 _(n) {
15
- return typeof n != "number" && typeof n != "string" ? "" : String(n);
14
+ function _(r) {
15
+ return typeof r != "number" && typeof r != "string" ? "" : String(r);
16
16
  }
17
- const z = B((n) => n(), 250);
18
- function P(n) {
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: w,
25
- fluid: T,
26
- maxLength: y,
27
- monospace: x,
28
- onChange: r,
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: h,
33
- selfClear: I,
32
+ placeholder: I,
33
+ selfClear: N,
34
34
  value: l,
35
- ...N
36
- } = n, a = E(null);
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 u = (f = e.currentTarget) == null ? void 0 : f.value;
42
- w ? z(() => s(e, u)) : s(e, u);
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), I ? e.currentTarget.value = "" : (e.currentTarget.blur(), r == null || r(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 u = _(l);
56
- e.value !== u && (e.value = u), !(!d && !c) && setTimeout(() => {
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
- t.input,
64
- T && t.fluid,
65
- x && t.monospace,
63
+ u.input,
64
+ y && u.fluid,
65
+ h && u.monospace,
66
66
  b
67
67
  ]),
68
- ...N,
68
+ ...w,
69
69
  children: [
70
- /* @__PURE__ */ p("div", { className: t.baseline, children: "." }),
70
+ /* @__PURE__ */ p("div", { className: u.baseline, children: "." }),
71
71
  /* @__PURE__ */ p(
72
72
  "input",
73
73
  {
74
- className: t.inner,
74
+ className: u.inner,
75
75
  disabled: g,
76
- maxLength: y,
77
- onBlur: (e) => r == null ? void 0 : r(e, e.target.value),
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: h,
80
+ placeholder: I,
81
81
  ref: a
82
82
  }
83
83
  )
@@ -1,14 +1,14 @@
1
- import '../assets/NumberInput.css';var E = Object.defineProperty;
2
- var I = (c, d, e) => d in c ? E(c, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[d] = e;
3
- var l = (c, d, e) => (I(c, typeof d != "symbol" ? d + "" : d, e), e);
4
- import { jsxs as S, jsx as g } from "react/jsx-runtime";
5
- import { KEY as x } from "../common/keys.js";
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 D } from "../common/react.js";
8
- import { Component as T, createRef as F } from "react";
9
- import { AnimatedNumber as M } from "./AnimatedNumber.js";
10
- import { Box as w } from "./Box.js";
11
- const R = "_numberInput_x4pb3_13", B = "_fluid_x4pb3_29", K = "_content_x4pb3_33", L = "_barContainer_x4pb3_37", Y = "_bar_x4pb3_37", j = "_inner_x4pb3_54", p = {
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 T {
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", F());
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 === x.Enter) {
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 === x.Escape && this.setState({
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: y,
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__ */ S("div", { className: p.content, children: [
170
- o && !e ? /* @__PURE__ */ g(M, { value: m, format: V }) : V ? V(m) : m,
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__ */ S(
174
- w,
173
+ return /* @__PURE__ */ _(
174
+ M,
175
175
  {
176
- className: D([
176
+ className: I([
177
177
  p.numberInput,
178
178
  n && p.fluid,
179
179
  i
180
180
  ]),
181
- minWidth: y,
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 x, jsx as m } from "react/jsx-runtime";
2
- import { p as s } from "../ProgressBar.module-Jzqlebbx.js";
3
- import { keyOfMatchingRange as v, toFixed as y, scale as N, clamp01 as S } from "../common/math.js";
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 _ } from "../constants.js";
6
- import { computeBoxProps as B, computeBoxClassName as O } from "./Box.js";
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: p,
9
+ className: f,
10
10
  value: r,
11
- minValue: f = 0,
11
+ minValue: p = 0,
12
12
  maxValue: u = 1,
13
13
  color: C,
14
- ranges: g = {},
14
+ ranges: h = {},
15
15
  children: l,
16
16
  ...t
17
- } = d, a = N(r, f, u), h = l !== void 0, o = C || v(r, g) || "default", e = B(t), c = [
18
- s.progressBar,
19
- p,
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: S(a) * 100 + "%"
22
+ width: _(a) * 100 + "%"
23
23
  };
24
- return _.includes(o) || o === "default" ? c.push(s["color__" + o]) : (e.style = { ...e.style, borderColor: o }, i.backgroundColor = o), /* @__PURE__ */ x("div", { className: n(c), ...e, children: [
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([s.fill, s.fill__animated]),
28
+ className: n([o.fill, o.fill__animated]),
29
29
  style: i
30
30
  }
31
31
  ),
32
- /* @__PURE__ */ m("div", { className: s.content, children: h ? l : y(a * 100) + "%" })
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>; /** Shows or hides the horizontal scrollbar. */
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 { classes as h, canRender as _ } from "../common/react.js";
3
- import { forwardRef as v, useEffect as z } from "react";
4
- import { addScrollableNode as H, removeScrollableNode as T } from "../events.js";
5
- import { computeBoxClassName as S, computeBoxProps as j } from "./Box.js";
6
- import '../assets/Section.css';const B = "_section_upqxx_17", y = "_title_upqxx_28", C = "_titleText_upqxx_34", E = "_buttons_upqxx_40", P = "_rest_upqxx_47", d = "_content_upqxx_51", g = "_fitted_upqxx_55", k = "_fill_upqxx_59", A = "_scrollable_upqxx_73", D = "_scrollableHorizontal_upqxx_90", t = {
7
- section: B,
8
- title: y,
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: o,
21
- children: a,
22
- className: u,
23
- fill: m,
24
- fitted: p,
25
- onScroll: b,
26
- scrollable: e,
27
- scrollableHorizontal: c,
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: q,
30
- ...i
31
- } = x, N = _(n) || _(o);
19
+ container_id: v,
20
+ ...o
21
+ } = a, x = m(n) || m(c);
32
22
  return z(() => {
33
- if (l != null && l.current && !(!e && !c))
34
- return H(l.current), () => {
35
- l != null && l.current && T(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: q || "",
41
- className: h([
30
+ id: v || "",
31
+ className: S([
42
32
  t.section,
43
- m && t.fill,
44
- p && t.fitted,
45
- e && t.scrollable,
46
- c && t.scrollableHorizontal,
47
- u,
48
- S(i)
33
+ N && t.fill,
34
+ b && t.fitted,
35
+ i && t.scrollable,
36
+ e && t.scrollableHorizontal,
37
+ p,
38
+ T(o)
49
39
  ]),
50
- ...j(i),
40
+ ...y(o),
51
41
  children: [
52
- N && /* @__PURE__ */ r("div", { className: t.title, children: [
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: o })
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: b,
50
+ onScroll: h,
61
51
  ref: l,
62
- children: a
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
- L as Section
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 { p as e } from "../ProgressBar.module-Jzqlebbx.js";
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 q, computeBoxProps as A } from "./Box.js";
6
- import { DraggableControl as G } from "./DraggableControl.js";
7
- import '../assets/Slider.css';const H = "_slider_1assx_9", I = "_cursorOffset_1assx_13", J = "_cursor_1assx_13", K = "_pointer_1assx_30", L = "_popupValue_1assx_41", a = {
8
- slider: H,
9
- cursorOffset: I,
10
- cursor: J,
11
- pointer: K,
12
- popupValue: L
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 Z(h) {
14
+ function Y(h) {
15
15
  const {
16
16
  // Draggable props (passthrough)
17
- animated: g,
18
- format: v,
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: S = {},
32
+ ranges: B = {},
33
33
  children: i,
34
34
  ...c
35
- } = h, B = i !== void 0;
35
+ } = h, F = i !== void 0;
36
36
  return /* @__PURE__ */ s(
37
- G,
37
+ A,
38
38
  {
39
39
  dragMatrix: [1, 0],
40
- animated: g,
41
- format: v,
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: (F) => {
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
- } = F, b = l != null, u = f(
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, S) || "default";
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
- q(c)
72
+ $(c)
73
73
  ]),
74
- ...A(c),
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: B ? i : n }),
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
- Z as Slider
123
+ Y as Slider
124
124
  };
@@ -1,30 +1,30 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import { classes as _ } from "../common/react.js";
3
- import { computeFlexClassName as f, computeFlexProps as w, computeFlexItemProps as o } from "./Flex.js";
4
- import { computeBoxClassName as a } 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", S = "_reverse__vertical_wrul1_35", k = "_zebra_wrul1_43", b = "_divider_wrul1_47", F = "_divider__hidden_wrul1_47", t = {
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: S,
12
- zebra: k,
13
- divider: b,
11
+ reverse__vertical: b,
12
+ zebra: S,
13
+ divider: k,
14
14
  divider__hidden: F
15
15
  };
16
- function n(i) {
17
- const { className: s, vertical: e, fill: r, reverse: l, zebra: d, ...v } = i, m = e ? "column" : "row", u = l ? "-reverse" : "";
18
- return /* @__PURE__ */ c(
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
- r && t.fill,
23
- e ? t.vertical : t.horizontal,
24
- d && t.zebra,
25
- l && t[`reverse${e ? "__vertical" : ""}`],
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(i)
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(i) {
37
- const { className: s, innerRef: e, ...r } = i;
38
- return /* @__PURE__ */ c(
36
+ function I(t) {
37
+ const { className: s, innerRef: r, ...i } = t;
38
+ return /* @__PURE__ */ l(
39
39
  "div",
40
40
  {
41
- className: _([t.item, s, a(r)]),
42
- ref: e,
43
- ...o(r)
41
+ className: o([e.item, s, n(i)]),
42
+ ref: r,
43
+ ..._(i)
44
44
  }
45
45
  );
46
46
  }
47
- n.Item = I;
48
- function P(i) {
49
- const { className: s, hidden: e, ...r } = i;
50
- return /* @__PURE__ */ c(
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
- "Stack__item",
55
- "Stack__divider",
56
- e && "Stack__divider--hidden",
53
+ className: o([
54
+ e.item,
55
+ e.divider,
56
+ r && e.divider__hidden,
57
57
  s,
58
- a(r)
58
+ n(i)
59
59
  ]),
60
- ...o(r)
60
+ ..._(i)
61
61
  }
62
62
  );
63
63
  }
64
- n.Divider = P;
64
+ a.Divider = P;
65
65
  export {
66
- n as Stack
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 const StyleableSection: (props: Props) => import("react/jsx-runtime").JSX.Element;
10
+ export declare function StyleableSection(props: Props): import("react/jsx-runtime").JSX.Element;
11
11
  export {};
@@ -1,12 +1,16 @@
1
- import { jsxs as i, jsx as l } from "react/jsx-runtime";
2
- import { Box as t } from "./Box.js";
3
- const s = (e) => /* @__PURE__ */ i(t, { style: e.style, children: [
4
- /* @__PURE__ */ i(t, { className: "Section__title", style: e.titleStyle, children: [
5
- /* @__PURE__ */ l(t, { className: "Section__titleText", style: e.textStyle, children: e.title }),
6
- /* @__PURE__ */ l("div", { className: "Section__buttons", children: e.titleSubtext })
7
- ] }),
8
- /* @__PURE__ */ l(t, { className: "Section__rest", children: /* @__PURE__ */ l(t, { className: "Section__content", children: e.children }) })
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
- s as StyleableSection
15
+ h as StyleableSection
12
16
  };