tgui-core 1.5.6 → 1.6.1

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,62 +1,65 @@
1
- import { jsx as a, jsxs as u } from "react/jsx-runtime";
2
- import { classes as T, canRender as d } from "../common/react.js";
3
- import { computeBoxClassName as f, computeBoxProps as h } from "../common/ui.js";
4
- import { Icon as N } from "./Icon.js";
5
- function v(l) {
6
- const { className: c, vertical: i, fill: o, fluid: e, children: r, ...s } = l;
1
+ import { jsx as a, jsxs as N } from "react/jsx-runtime";
2
+ import { classes as f, canRender as d } from "../common/react.js";
3
+ import { computeBoxClassName as h, computeBoxProps as p } from "../common/ui.js";
4
+ import { Icon as v } from "./Icon.js";
5
+ function T(e) {
6
+ const { className: i, vertical: c, fill: o, fluid: s, children: r, ...l } = e;
7
7
  return /* @__PURE__ */ a(
8
8
  "div",
9
9
  {
10
- className: T([
10
+ className: f([
11
11
  "Tabs",
12
- i ? "Tabs--vertical" : "Tabs--horizontal",
12
+ c ? "Tabs--vertical" : "Tabs--horizontal",
13
13
  o && "Tabs--fill",
14
- e && "Tabs--fluid",
15
- c,
16
- f(s)
14
+ s && "Tabs--fluid",
15
+ i,
16
+ h(l)
17
17
  ]),
18
- ...h(s),
18
+ ...p(l),
19
19
  children: r
20
20
  }
21
21
  );
22
22
  }
23
- function x(l) {
23
+ function x(e) {
24
24
  const {
25
- className: c,
26
- selected: i,
25
+ className: i,
26
+ selected: c,
27
27
  color: o,
28
- icon: e,
28
+ icon: s,
29
29
  iconSpin: r,
30
- leftSlot: s,
30
+ leftSlot: l,
31
31
  rightSlot: t,
32
- children: p,
32
+ children: u,
33
33
  onClick: n,
34
34
  ...m
35
- } = l, _ = (b) => {
35
+ } = e;
36
+ function _(b) {
36
37
  n && (n(b), b.target.blur());
37
- };
38
- return /* @__PURE__ */ u(
38
+ }
39
+ return /* @__PURE__ */ N(
39
40
  "div",
40
41
  {
41
- className: T([
42
+ className: f([
42
43
  "Tab",
43
44
  "Tabs__Tab",
44
45
  `Tab--color--${o}`,
45
- i && "Tab--selected",
46
- c,
47
- f(m)
46
+ c && "Tab--selected",
47
+ i,
48
+ h(m)
48
49
  ]),
49
50
  onClick: _,
50
- ...h(m),
51
+ ...p(m),
51
52
  children: [
52
- d(s) && /* @__PURE__ */ a("div", { className: "Tab__left", children: s }) || !!e && /* @__PURE__ */ a("div", { className: "Tab__left", children: /* @__PURE__ */ a(N, { name: e, spin: r }) }),
53
- /* @__PURE__ */ a("div", { className: "Tab__text", children: p }),
53
+ d(l) && /* @__PURE__ */ a("div", { className: "Tab__left", children: l }) || !!s && /* @__PURE__ */ a("div", { className: "Tab__left", children: /* @__PURE__ */ a(v, { name: s, spin: r }) }),
54
+ /* @__PURE__ */ a("div", { className: "Tab__text", children: u }),
54
55
  d(t) && /* @__PURE__ */ a("div", { className: "Tab__right", children: t })
55
56
  ]
56
57
  }
57
58
  );
58
59
  }
59
- v.Tab = x;
60
+ ((e) => {
61
+ e.Tab = x;
62
+ })(T || (T = {}));
60
63
  export {
61
- v as Tabs
64
+ T as Tabs
62
65
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tgui-core",
3
- "version": "1.5.6",
3
+ "version": "1.6.1",
4
4
  "description": "TGUI core component library",
5
5
  "keywords": ["TGUI", "library", "typescript"],
6
6
  "files": ["dist"],
@@ -18,7 +18,7 @@
18
18
  "sass": "./lib/styles/main.scss"
19
19
  },
20
20
  "./styles/components/*": {
21
- "sass": "./lib/styles/components/*"
21
+ "sass": "./lib/styles/components/*.scss"
22
22
  }
23
23
  },
24
24
  "repository": {