tgui-core 1.1.16 → 1.1.18
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.
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BoxProps } from './Box';
|
|
3
|
+
|
|
4
|
+
declare enum Direction {
|
|
5
|
+
NORTH = 1,
|
|
6
|
+
SOUTH = 2,
|
|
7
|
+
EAST = 4,
|
|
8
|
+
WEST = 8,
|
|
9
|
+
NORTHEAST = 5,
|
|
10
|
+
NORTHWEST = 9,
|
|
11
|
+
SOUTHEAST = 6,
|
|
12
|
+
SOUTHWEST = 10
|
|
13
|
+
}
|
|
14
|
+
type Props = {
|
|
15
|
+
/** Required: The path of the icon */
|
|
16
|
+
icon: string;
|
|
17
|
+
/** Required: The state of the icon */
|
|
18
|
+
icon_state: string;
|
|
19
|
+
} & Partial<{
|
|
20
|
+
/** Facing direction. See direction enum. Default is South */
|
|
21
|
+
direction: Direction;
|
|
22
|
+
/** Fallback icon. */
|
|
23
|
+
fallback: ReactNode;
|
|
24
|
+
/** Frame number. Default is 1 */
|
|
25
|
+
frame: number;
|
|
26
|
+
/** Movement state. Default is false */
|
|
27
|
+
movement: any;
|
|
28
|
+
}> & BoxProps;
|
|
29
|
+
export declare function DmIcon(props: Props): string | number | boolean | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { Image as $ } from "./Image.js";
|
|
3
|
+
function x(o) {
|
|
4
|
+
var r;
|
|
5
|
+
const {
|
|
6
|
+
className: l,
|
|
7
|
+
direction: t = 2,
|
|
8
|
+
fallback: n,
|
|
9
|
+
frame: c = 1,
|
|
10
|
+
icon_state: m,
|
|
11
|
+
icon: i,
|
|
12
|
+
movement: s = !1,
|
|
13
|
+
...a
|
|
14
|
+
} = o, e = (r = Byond.iconRefMap) == null ? void 0 : r[i];
|
|
15
|
+
if (!e) return n;
|
|
16
|
+
const f = `${e}?state=${m}&dir=${t}&movement=${!!s}&frame=${c}`;
|
|
17
|
+
return /* @__PURE__ */ u($, { fixErrors: !0, src: f, ...a });
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
x as DmIcon
|
|
21
|
+
};
|
|
@@ -11,6 +11,7 @@ export { ColorBox } from './ColorBox';
|
|
|
11
11
|
export { Dialog } from './Dialog';
|
|
12
12
|
export { Dimmer } from './Dimmer';
|
|
13
13
|
export { Divider } from './Divider';
|
|
14
|
+
export { DmIcon } from './DmIcon';
|
|
14
15
|
export { DraggableControl } from './DraggableControl';
|
|
15
16
|
export { Dropdown } from './Dropdown';
|
|
16
17
|
export { FitText } from './FitText';
|
package/dist/components/index.js
CHANGED
|
@@ -4,44 +4,45 @@ import { Blink as x } from "./Blink.js";
|
|
|
4
4
|
import { BlockQuote as i } from "./BlockQuote.js";
|
|
5
5
|
import { Box as a } from "./Box.js";
|
|
6
6
|
import { Button as u } from "./Button.js";
|
|
7
|
-
import { ByondUi as
|
|
8
|
-
import { Chart as
|
|
9
|
-
import { Collapsible as
|
|
10
|
-
import { ColorBox as
|
|
11
|
-
import { Dialog as
|
|
7
|
+
import { ByondUi as c } from "./ByondUi.js";
|
|
8
|
+
import { Chart as b } from "./Chart.js";
|
|
9
|
+
import { Collapsible as D } from "./Collapsible.js";
|
|
10
|
+
import { ColorBox as T } from "./ColorBox.js";
|
|
11
|
+
import { Dialog as C } from "./Dialog.js";
|
|
12
12
|
import { Dimmer as L } from "./Dimmer.js";
|
|
13
13
|
import { Divider as y } from "./Divider.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
14
|
+
import { DmIcon as N } from "./DmIcon.js";
|
|
15
|
+
import { DraggableControl as F } from "./DraggableControl.js";
|
|
16
|
+
import { Dropdown as M } from "./Dropdown.js";
|
|
17
|
+
import { FitText as h } from "./FitText.js";
|
|
18
|
+
import { Flex as w } from "./Flex.js";
|
|
19
|
+
import { Icon as O } from "./Icon.js";
|
|
20
|
+
import { Image as U } from "./Image.js";
|
|
21
|
+
import { InfinitePlane as j } from "./InfinitePlane.js";
|
|
22
|
+
import { Input as z } from "./Input.js";
|
|
23
|
+
import { KeyListener as H } from "./KeyListener.js";
|
|
24
|
+
import { Knob as W } from "./Knob.js";
|
|
25
|
+
import { LabeledControls as Y } from "./LabeledControls.js";
|
|
26
|
+
import { LabeledList as _ } from "./LabeledList.js";
|
|
27
|
+
import { MenuBar as oo } from "./MenuBar.js";
|
|
28
|
+
import { Modal as eo } from "./Modal.js";
|
|
29
|
+
import { NoticeBox as po } from "./NoticeBox.js";
|
|
30
|
+
import { NumberInput as xo } from "./NumberInput.js";
|
|
31
|
+
import { Popper as io } from "./Popper.js";
|
|
32
|
+
import { ProgressBar as ao } from "./ProgressBar.js";
|
|
33
|
+
import { RestrictedInput as uo } from "./RestrictedInput.js";
|
|
34
|
+
import { RoundGauge as co } from "./RoundGauge.js";
|
|
35
|
+
import { Section as Bo } from "./Section.js";
|
|
36
|
+
import { Slider as Io } from "./Slider.js";
|
|
36
37
|
import { Stack as go } from "./Stack.js";
|
|
37
|
-
import { StyleableSection as
|
|
38
|
-
import { Table as
|
|
39
|
-
import { Tabs as
|
|
40
|
-
import { TextArea as
|
|
41
|
-
import { TimeDisplay as
|
|
42
|
-
import { Tooltip as
|
|
43
|
-
import { TrackOutsideClicks as
|
|
44
|
-
import { VirtualList as
|
|
38
|
+
import { StyleableSection as ko } from "./StyleableSection.js";
|
|
39
|
+
import { Table as So } from "./Table.js";
|
|
40
|
+
import { Tabs as Ao } from "./Tabs.js";
|
|
41
|
+
import { TextArea as Po } from "./TextArea.js";
|
|
42
|
+
import { TimeDisplay as Ko } from "./TimeDisplay.js";
|
|
43
|
+
import { Tooltip as Ro } from "./Tooltip.js";
|
|
44
|
+
import { TrackOutsideClicks as vo } from "./TrackOutsideClicks.js";
|
|
45
|
+
import { VirtualList as Go } from "./VirtualList.js";
|
|
45
46
|
export {
|
|
46
47
|
e as AnimatedNumber,
|
|
47
48
|
p as Autofocus,
|
|
@@ -49,42 +50,43 @@ export {
|
|
|
49
50
|
i as BlockQuote,
|
|
50
51
|
a as Box,
|
|
51
52
|
u as Button,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
c as ByondUi,
|
|
54
|
+
b as Chart,
|
|
55
|
+
D as Collapsible,
|
|
56
|
+
T as ColorBox,
|
|
57
|
+
C as Dialog,
|
|
57
58
|
L as Dimmer,
|
|
58
59
|
y as Divider,
|
|
59
|
-
N as
|
|
60
|
-
F as
|
|
61
|
-
M as
|
|
62
|
-
h as
|
|
63
|
-
w as
|
|
64
|
-
O as
|
|
65
|
-
U as
|
|
66
|
-
j as
|
|
67
|
-
z as
|
|
68
|
-
H as
|
|
69
|
-
W as
|
|
70
|
-
Y as
|
|
71
|
-
_ as
|
|
72
|
-
oo as
|
|
73
|
-
eo as
|
|
74
|
-
po as
|
|
75
|
-
xo as
|
|
76
|
-
io as
|
|
77
|
-
ao as
|
|
78
|
-
uo as
|
|
79
|
-
|
|
80
|
-
Bo as
|
|
60
|
+
N as DmIcon,
|
|
61
|
+
F as DraggableControl,
|
|
62
|
+
M as Dropdown,
|
|
63
|
+
h as FitText,
|
|
64
|
+
w as Flex,
|
|
65
|
+
O as Icon,
|
|
66
|
+
U as Image,
|
|
67
|
+
j as InfinitePlane,
|
|
68
|
+
z as Input,
|
|
69
|
+
H as KeyListener,
|
|
70
|
+
W as Knob,
|
|
71
|
+
Y as LabeledControls,
|
|
72
|
+
_ as LabeledList,
|
|
73
|
+
oo as MenuBar,
|
|
74
|
+
eo as Modal,
|
|
75
|
+
po as NoticeBox,
|
|
76
|
+
xo as NumberInput,
|
|
77
|
+
io as Popper,
|
|
78
|
+
ao as ProgressBar,
|
|
79
|
+
uo as RestrictedInput,
|
|
80
|
+
co as RoundGauge,
|
|
81
|
+
Bo as Section,
|
|
82
|
+
Io as Slider,
|
|
81
83
|
go as Stack,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
84
|
+
ko as StyleableSection,
|
|
85
|
+
So as Table,
|
|
86
|
+
Ao as Tabs,
|
|
87
|
+
Po as TextArea,
|
|
88
|
+
Ko as TimeDisplay,
|
|
89
|
+
Ro as Tooltip,
|
|
90
|
+
vo as TrackOutsideClicks,
|
|
91
|
+
Go as VirtualList
|
|
90
92
|
};
|