Skip to content

Commit d470e2a

Browse files
authored
initial commit (#1013)
1 parent 27af0b5 commit d470e2a

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

tgui/packages/tgui/components/ProgressBar.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export const ProgressBar = (props) => {
2929
// We permit colors to be in hex format, rgb()/rgba() format,
3030
// a name for a color-<name> class, or a base CSS class.
3131
const outerProps = computeBoxProps(rest);
32+
3233
const outerClasses = ['ProgressBar', className, computeBoxClassName(rest)];
3334
const fillStyles = {
3435
width: clamp01(scaledValue) * 100 + '%',
@@ -38,8 +39,7 @@ export const ProgressBar = (props) => {
3839
outerClasses.push('ProgressBar--color--' + effectiveColor);
3940
} else {
4041
// Otherwise, set styles directly.
41-
outerProps.style =
42-
(outerProps.style || '') + `borderClor: ${effectiveColor};`;
42+
outerProps.style = { ...outerProps.style, borderColor: effectiveColor };
4343
fillStyles['backgroundColor'] = effectiveColor;
4444
}
4545

tgui/packages/tgui/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"marked": "^4.3.0",
1414
"react": "^18.3.1",
1515
"react-dom": "^18.3.1",
16+
"tgui-core": "^1.1.2",
1617
"tgui-dev-server": "workspace:*",
1718
"tgui-polyfill": "workspace:*"
1819
}

tgui/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"jsx": "preserve",
1010
"lib": ["DOM", "DOM.Iterable", "ESNext", "ScriptHost"],
1111
"module": "ESNext",
12-
"moduleResolution": "Node",
12+
"moduleResolution": "Bundler",
1313
"noEmit": true,
1414
"resolveJsonModule": true,
1515
"skipLibCheck": true,

tgui/webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module.exports = (env = {}, argv) => {
5959
],
6060
},
6161
{
62-
test: /\.scss$/,
62+
test: /\.(s)?css$/,
6363
use: [
6464
{
6565
loader: ExtractCssPlugin.loader,

tgui/yarn.lock

+11
Original file line numberDiff line numberDiff line change
@@ -9573,6 +9573,16 @@ __metadata:
95739573
languageName: unknown
95749574
linkType: soft
95759575

9576+
"tgui-core@npm:^1.1.2":
9577+
version: 1.1.2
9578+
resolution: "tgui-core@npm:1.1.2"
9579+
peerDependencies:
9580+
react: ^18.2.0
9581+
react-dom: ^18.2.0
9582+
checksum: 10c0/05edc2215daf63bdb126f57aa74e17875784dbe1fadf19f1218dabb17dfffcd63b3c6a1678eb8a5b10b8d325755c1e124f1298350be20af913e9cd0d5a749ec9
9583+
languageName: node
9584+
linkType: hard
9585+
95769586
"tgui-dev-server@workspace:*, tgui-dev-server@workspace:packages/tgui-dev-server":
95779587
version: 0.0.0-use.local
95789588
resolution: "tgui-dev-server@workspace:packages/tgui-dev-server"
@@ -9667,6 +9677,7 @@ __metadata:
96679677
marked: "npm:^4.3.0"
96689678
react: "npm:^18.3.1"
96699679
react-dom: "npm:^18.3.1"
9680+
tgui-core: "npm:^1.1.2"
96709681
tgui-dev-server: "workspace:*"
96719682
tgui-polyfill: "workspace:*"
96729683
languageName: unknown

0 commit comments

Comments
 (0)