tgui-core 1.0.0 → 1.0.2

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.
Files changed (57) hide show
  1. package/README.md +29 -0
  2. package/package.json +2 -4
  3. package/tsconfig.json +21 -1
  4. /package/{styles → src/styles}/base.scss +0 -0
  5. /package/{styles → src/styles}/colors.scss +0 -0
  6. /package/{styles → src/styles}/components/BlockQuote.scss +0 -0
  7. /package/{styles → src/styles}/components/Button.scss +0 -0
  8. /package/{styles → src/styles}/components/ColorBox.scss +0 -0
  9. /package/{styles → src/styles}/components/Dialog.scss +0 -0
  10. /package/{styles → src/styles}/components/Dimmer.scss +0 -0
  11. /package/{styles → src/styles}/components/Divider.scss +0 -0
  12. /package/{styles → src/styles}/components/Dropdown.scss +0 -0
  13. /package/{styles → src/styles}/components/Flex.scss +0 -0
  14. /package/{styles → src/styles}/components/Icon.scss +0 -0
  15. /package/{styles → src/styles}/components/Input.scss +0 -0
  16. /package/{styles → src/styles}/components/Knob.scss +0 -0
  17. /package/{styles → src/styles}/components/LabeledList.scss +0 -0
  18. /package/{styles → src/styles}/components/MenuBar.scss +0 -0
  19. /package/{styles → src/styles}/components/Modal.scss +0 -0
  20. /package/{styles → src/styles}/components/NoticeBox.scss +0 -0
  21. /package/{styles → src/styles}/components/NumberInput.scss +0 -0
  22. /package/{styles → src/styles}/components/ProgressBar.scss +0 -0
  23. /package/{styles → src/styles}/components/RoundGauge.scss +0 -0
  24. /package/{styles → src/styles}/components/Section.scss +0 -0
  25. /package/{styles → src/styles}/components/Slider.scss +0 -0
  26. /package/{styles → src/styles}/components/Stack.scss +0 -0
  27. /package/{styles → src/styles}/components/Table.scss +0 -0
  28. /package/{styles → src/styles}/components/Tabs.scss +0 -0
  29. /package/{styles → src/styles}/components/TextArea.scss +0 -0
  30. /package/{styles → src/styles}/components/Tooltip.scss +0 -0
  31. /package/{styles → src/styles}/functions.scss +0 -0
  32. /package/{styles → src/styles}/layouts/Layout.scss +0 -0
  33. /package/{styles → src/styles}/layouts/NtosHeader.scss +0 -0
  34. /package/{styles → src/styles}/layouts/NtosWindow.scss +0 -0
  35. /package/{styles → src/styles}/layouts/TitleBar.scss +0 -0
  36. /package/{styles → src/styles}/layouts/Window.scss +0 -0
  37. /package/{styles → src/styles}/main.scss +0 -0
  38. /package/{styles → src/styles}/reset.scss +0 -0
  39. /package/{styles → src/styles}/themes/abductor.scss +0 -0
  40. /package/{styles → src/styles}/themes/admin.scss +0 -0
  41. /package/{styles → src/styles}/themes/cardtable.scss +0 -0
  42. /package/{styles → src/styles}/themes/hackerman.scss +0 -0
  43. /package/{styles → src/styles}/themes/malfunction.scss +0 -0
  44. /package/{styles → src/styles}/themes/neutral.scss +0 -0
  45. /package/{styles → src/styles}/themes/ntOS95.scss +0 -0
  46. /package/{styles → src/styles}/themes/ntos.scss +0 -0
  47. /package/{styles → src/styles}/themes/ntos_cat.scss +0 -0
  48. /package/{styles → src/styles}/themes/ntos_darkmode.scss +0 -0
  49. /package/{styles → src/styles}/themes/ntos_lightmode.scss +0 -0
  50. /package/{styles → src/styles}/themes/ntos_spooky.scss +0 -0
  51. /package/{styles → src/styles}/themes/ntos_synth.scss +0 -0
  52. /package/{styles → src/styles}/themes/ntos_terminal.scss +0 -0
  53. /package/{styles → src/styles}/themes/paper.scss +0 -0
  54. /package/{styles → src/styles}/themes/retro.scss +0 -0
  55. /package/{styles → src/styles}/themes/spookyconsole.scss +0 -0
  56. /package/{styles → src/styles}/themes/syndicate.scss +0 -0
  57. /package/{styles → src/styles}/themes/wizard.scss +0 -0
package/README.md CHANGED
@@ -1 +1,30 @@
1
1
  # tgui-core
2
+
3
+ A collection of utilities and components for the [tgui](https://github.com/tgstation/tgstation) framework.
4
+
5
+ You can view the code on [GitHub](https://github.com/jlsnow301/tgui-core).
6
+
7
+ This package was built to help the various downstream SS13 servers of SS13 update TGUI to the latest version.
8
+
9
+ ## Installation
10
+
11
+ ```sh
12
+ yarn add tgui-core
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ```tsx
18
+ import { Button } from 'tgui-core/components/Button';
19
+ import { render } from 'tgui-core/render';
20
+
21
+ <Button>Click</Button>;
22
+ ```
23
+
24
+ ## License
25
+
26
+ MIT
27
+
28
+ ## Contributing
29
+
30
+ Contributions are welcome. Please open an issue or a pull request. I am available on the tgstation [discord](https://discord.com/invite/EUvpBtU78X).
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "tgui-core",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "TGUI core component library",
5
- "main": "index.js",
6
5
  "keywords": [
7
6
  "TGUI",
8
7
  "library",
@@ -16,10 +15,9 @@
16
15
  "react-dom": "^18.3.1",
17
16
  "react-popper": "^2.3.0"
18
17
  },
19
- "packageManager": "pnpm@9.1.2+sha512.127dc83b9ea10c32be65d22a8efb4a65fb952e8fefbdfded39bdc3c97efc32d31b48b00420df2c1187ace28c921c902f0cb5a134a4d032b8b5295cbfa2c681e2",
20
18
  "devDependencies": {
21
19
  "@types/node": "^20.12.12",
22
20
  "@types/react": "^18.3.3",
23
21
  "@types/react-dom": "^18.3.0"
24
22
  }
25
- }
23
+ }
package/tsconfig.json CHANGED
@@ -2,6 +2,7 @@
2
2
  "compilerOptions": {
3
3
  "allowJs": true,
4
4
  "allowSyntheticDefaultImports": true,
5
+ "baseUrl": ".",
5
6
  "checkJs": false,
6
7
  "esModuleInterop": true,
7
8
  "forceConsistentCasingInFileNames": true,
@@ -16,6 +17,26 @@
16
17
  "module": "ESNext",
17
18
  "moduleResolution": "Node",
18
19
  "noEmit": true,
20
+ "paths": {
21
+ "components/*": [
22
+ "src/components/*"
23
+ ],
24
+ "common/*": [
25
+ "src/common/*"
26
+ ],
27
+ "debug/*": [
28
+ "src/debug/*"
29
+ ],
30
+ "layouts/*": [
31
+ "src/layouts/*"
32
+ ],
33
+ "interfaces/*": [
34
+ "src/interfaces/*"
35
+ ],
36
+ "styles/*": [
37
+ "src/styles/*"
38
+ ]
39
+ },
19
40
  "resolveJsonModule": true,
20
41
  "skipLibCheck": true,
21
42
  "strict": false,
@@ -23,7 +44,6 @@
23
44
  "target": "ES5"
24
45
  },
25
46
  "include": [
26
- ".eslintrc.cjs",
27
47
  "global.d.ts",
28
48
  "**/*.ts",
29
49
  "**/*.tsx",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes