tgui-core 1.8.3 → 1.8.4

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.
@@ -1,72 +1,70 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
- import { classes as o } from "../common/react.js";
2
+ import { classes as r } from "../common/react.js";
3
3
  import { computeBoxClassName as m, computeBoxProps as a, unit as f } from "../common/ui.js";
4
- function d(e) {
5
- return o([
4
+ function p(e) {
5
+ return r([
6
6
  "Flex",
7
7
  e.inlineFlex && "Flex--inline",
8
8
  m(e)
9
9
  ]);
10
10
  }
11
- function p(e) {
12
- const { direction: i, wrap: t, align: r, justify: s, ...n } = e;
11
+ function d(e) {
12
+ const { direction: s, wrap: t, align: i, justify: n, ...o } = e;
13
13
  return a({
14
14
  style: {
15
- ...n.style,
16
- flexDirection: i,
15
+ ...o.style,
16
+ flexDirection: s,
17
17
  flexWrap: t === !0 ? "wrap" : t,
18
- alignItems: r,
19
- justifyContent: s
18
+ alignItems: i,
19
+ justifyContent: n
20
20
  },
21
- ...n
21
+ ...o
22
22
  });
23
23
  }
24
24
  function F(e) {
25
- const { className: i, ...t } = e;
25
+ const { className: s, ...t } = e;
26
26
  return /* @__PURE__ */ l(
27
27
  "div",
28
28
  {
29
- className: o([i, d(t)]),
30
- ...p(t)
29
+ className: r([s, p(t)]),
30
+ ...d(t)
31
31
  }
32
32
  );
33
33
  }
34
- const N = (e) => o(["Flex__item", m(e)]);
34
+ const N = (e) => r(["Flex__item", m(e)]);
35
35
  function v(e) {
36
- const { style: i, grow: t, order: r, shrink: s, basis: n, align: c, ...u } = e, x = n ?? // IE11: Set basis to specified width if it's known, which fixes certain
36
+ const { style: s, grow: t, order: i, shrink: n, basis: o, align: c, ...u } = e, x = o ?? // IE11: Set basis to specified width if it's known, which fixes certain
37
37
  // bugs when rendering tables inside the flex.
38
38
  e.width ?? // If grow is used, basis should be set to 0 to be consistent with
39
39
  // flex css shorthand `flex: 1`.
40
40
  (t !== void 0 ? 0 : void 0);
41
41
  return a({
42
42
  style: {
43
- ...i,
44
- minWidth: t !== void 0 && 0,
45
- minHeight: t !== void 0 && 0,
43
+ ...s,
46
44
  flexGrow: t !== void 0 && Number(t),
47
- flexShrink: s !== void 0 && Number(s),
45
+ flexShrink: n !== void 0 && Number(n),
48
46
  flexBasis: f(x),
49
- order: r,
47
+ order: i,
50
48
  alignSelf: c
51
49
  },
52
50
  ...u
53
51
  });
54
52
  }
55
- function g(e) {
56
- const { className: i, ...t } = e;
53
+ function y(e) {
54
+ const { className: s, ...t } = e;
57
55
  return /* @__PURE__ */ l(
58
56
  "div",
59
57
  {
60
- className: o([i, N(e)]),
58
+ className: r([s, N(e)]),
61
59
  ...v(t)
62
60
  }
63
61
  );
64
62
  }
65
- F.Item = g;
63
+ F.Item = y;
66
64
  export {
67
65
  F as Flex,
68
- d as computeFlexClassName,
66
+ p as computeFlexClassName,
69
67
  N as computeFlexItemClassName,
70
68
  v as computeFlexItemProps,
71
- p as computeFlexProps
69
+ d as computeFlexProps
72
70
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tgui-core",
3
- "version": "1.8.3",
3
+ "version": "1.8.4",
4
4
  "description": "TGUI core component library",
5
5
  "keywords": ["TGUI", "library", "typescript"],
6
6
  "files": ["dist", "styles"],