@t-apps/ui 0.1.0

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.
package/dist/index.css ADDED
@@ -0,0 +1,77 @@
1
+ /* src/style.css */
2
+ :root {
3
+ --fg: #0B1220;
4
+ --bg-1: #FFFFFF;
5
+ --bg-2: #EEF3FF;
6
+ --bg-3: #D9E4FF;
7
+ --component-bg: #F5F8FF;
8
+ --component-fg: var(--fg);
9
+ --component-bg-hover: #EAF0FF;
10
+ --accent: #2D6BFF;
11
+ --accent-hover: #1E4FD6;
12
+ --muted: #5B6B86;
13
+ --border: #D7E1F5;
14
+ }
15
+ @media (prefers-color-scheme: dark) {
16
+ :root {
17
+ --fg: #EAF0FF;
18
+ --bg-1: #070D1A;
19
+ --bg-2: #0C1528;
20
+ --bg-3: #121F3A;
21
+ --component-bg: #0F1B33;
22
+ --component-fg: var(--fg);
23
+ --component-bg-hover: #16264A;
24
+ --accent: #4A8CFF;
25
+ --accent-hover: #6AA3FF;
26
+ --muted: #93A4C7;
27
+ --border: #1F2E4D;
28
+ }
29
+ }
30
+ body {
31
+ background: var(--bg-1);
32
+ color: var(--fg);
33
+ font-family:
34
+ Arial,
35
+ Helvetica,
36
+ sans-serif;
37
+ }
38
+ .t-component {
39
+ display: block;
40
+ width: fit-content;
41
+ background-color: var(--component-bg);
42
+ color: var(--component-fg);
43
+ padding: 4px 10px;
44
+ border: var(--border) 2px solid;
45
+ border-radius: 4px;
46
+ outline: none;
47
+ }
48
+ .t-button {
49
+ user-select: none;
50
+ cursor: pointer;
51
+ }
52
+ .t-button:hover {
53
+ background-color: var(--component-bg-hover);
54
+ }
55
+ .t-button:active {
56
+ background-color: var(--component-bg);
57
+ }
58
+ .t-navbar {
59
+ display: flex;
60
+ position: relative;
61
+ width: 100%;
62
+ height: 60px;
63
+ background-color: var(--bg-2);
64
+ align-items: center;
65
+ padding: 4px;
66
+ box-sizing: border-box;
67
+ gap: 4px;
68
+ }
69
+ .t-center {
70
+ position: absolute;
71
+ left: 50%;
72
+ transform: translateX(-50%);
73
+ }
74
+ .t-end {
75
+ margin-left: auto;
76
+ }
77
+ /*# sourceMappingURL=index.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/style.css"],"sourcesContent":[":root {\n --fg: #0B1220;\n\n --bg-1: #FFFFFF;\n --bg-2: #EEF3FF;\n --bg-3: #D9E4FF;\n\n --component-bg: #F5F8FF;\n --component-fg: var(--fg);\n --component-bg-hover: #EAF0FF;\n\n --accent: #2D6BFF;\n --accent-hover: #1E4FD6;\n\n --muted: #5B6B86;\n\n --border: #D7E1F5;\n}\n\n@media (prefers-color-scheme: dark) {\n :root {\n --fg: #EAF0FF;\n\n --bg-1: #070D1A;\n --bg-2: #0C1528;\n --bg-3: #121F3A;\n\n --component-bg: #0F1B33;\n --component-fg: var(--fg);\n --component-bg-hover: #16264A;\n\n --accent: #4A8CFF;\n --accent-hover: #6AA3FF;\n\n --muted: #93A4C7;\n\n --border: #1F2E4D;\n }\n}\n\nbody { \n background: var(--bg-1); \n color: var(--fg); \n font-family: Arial, Helvetica, sans-serif; \n} \n\n.t-component { \n display: block; \n width: fit-content; \n background-color: var(--component-bg); \n color: var(--component-fg); \n padding: 4px 10px; \n border: var(--border) 2px solid; \n border-radius: 4px; \n outline: none; \n} \n\n.t-button { \n user-select: none; \n cursor: pointer; \n} \n\n.t-button:hover { \n background-color: var(--component-bg-hover); \n} \n\n.t-button:active { \n background-color: var(--component-bg); \n}\n\n.t-navbar {\n display: flex;\n position: relative;\n width: 100%;\n height: 60px;\n background-color: var(--bg-2);\n align-items: center;\n padding: 4px;\n box-sizing: border-box;\n gap: 4px;\n}\n\n.t-center {\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n}\n\n.t-end {\n margin-left: auto;\n}"],"mappings":";AAAA;AACE,QAAM;AAEN,UAAQ;AACR,UAAQ;AACR,UAAQ;AAER,kBAAgB;AAChB,kBAAgB,IAAI;AACpB,wBAAsB;AAEtB,YAAU;AACV,kBAAgB;AAEhB,WAAS;AAET,YAAU;AACZ;AAEA,QAAO,sBAAuB;AAC5B;AACE,UAAM;AAEN,YAAQ;AACR,YAAQ;AACR,YAAQ;AAER,oBAAgB;AAChB,oBAAgB,IAAI;AACpB,0BAAsB;AAEtB,cAAU;AACV,oBAAgB;AAEhB,aAAS;AAET,cAAU;AACZ;AACF;AAEA;AACE,cAAY,IAAI;AAChB,SAAO,IAAI;AACX;AAAA,IAAa,KAAK;AAAA,IAAE,SAAS;AAAA,IAAE;AACjC;AAEA,CAAC;AACC,WAAS;AACT,SAAO;AACP,oBAAkB,IAAI;AACtB,SAAO,IAAI;AACX,WAAS,IAAI;AACb,UAAQ,IAAI,UAAU,IAAI;AAC1B,iBAAe;AACf,WAAS;AACX;AAEA,CAAC;AACC,eAAa;AACb,UAAQ;AACV;AAEA,CALC,QAKQ;AACP,oBAAkB,IAAI;AACxB;AAEA,CATC,QASQ;AACP,oBAAkB,IAAI;AACxB;AAEA,CAAC;AACC,WAAS;AACT,YAAU;AACV,SAAO;AACP,UAAQ;AACR,oBAAkB,IAAI;AACtB,eAAa;AACb,WAAS;AACT,cAAY;AACZ,OAAK;AACP;AAEA,CAAC;AACC,YAAU;AACV,QAAM;AACN,aAAW,WAAW;AACxB;AAEA,CAAC;AACC,eAAa;AACf;","names":[]}
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
package/dist/index.js ADDED
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/index.ts
17
+ var index_exports = {};
18
+ module.exports = __toCommonJS(index_exports);
19
+
20
+ // src/components/TButton.tsx
21
+ var import_jsx_runtime = require("react/jsx-runtime");
22
+
23
+ // src/components/TInput.tsx
24
+ var import_jsx_runtime2 = require("react/jsx-runtime");
25
+
26
+ // src/components/TNavbar.tsx
27
+ var import_jsx_runtime3 = require("react/jsx-runtime");
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts","../src/components/TButton.tsx","../src/components/TInput.tsx","../src/components/TNavbar.tsx"],"sourcesContent":["export * from \"./components/TButton\";\nexport * from \"./components/TInput\";\nexport * from \"./components/TNavbar\";\n\nimport \"./style.css\"","\"use client\";\n\nimport React from \"react\";\n\ntype Props = React.AnchorHTMLAttributes<HTMLAnchorElement>\n\nexport default function TButton({ children, className, ...props }: Props) {\n return (\n <a\n {...props}\n className={`t-component t-button ${className ?? \"\"}`}\n >\n {children}\n </a>\n );\n}","\"use client\";\n\nimport React from \"react\";\n\ntype Props = React.InputHTMLAttributes<HTMLInputElement>;\n\nexport default function TInput({ className, ...props}: Props) {\n return (\n <input\n {...props}\n className={`t-component t-input ${className ?? \"\"}`}\n />\n );\n}","\"use client\";\n\nimport React from \"react\";\n\ntype Props = React.HTMLAttributes<HTMLDivElement>\n\nexport default function TNavbar({ children, className, ...props }: Props) {\n return (\n <div\n {...props}\n className={`t-navbar ${className ?? \"\"}`}\n >\n {children}\n </div>\n );\n}"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;;;ACQI;;;ACAA,IAAAA,sBAAA;;;ACAA,IAAAC,sBAAA;","names":["import_jsx_runtime","import_jsx_runtime"]}
package/dist/index.mjs ADDED
@@ -0,0 +1,9 @@
1
+ // src/components/TButton.tsx
2
+ import { jsx } from "react/jsx-runtime";
3
+
4
+ // src/components/TInput.tsx
5
+ import { jsx as jsx2 } from "react/jsx-runtime";
6
+
7
+ // src/components/TNavbar.tsx
8
+ import { jsx as jsx3 } from "react/jsx-runtime";
9
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/TButton.tsx","../src/components/TInput.tsx","../src/components/TNavbar.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\n\ntype Props = React.AnchorHTMLAttributes<HTMLAnchorElement>\n\nexport default function TButton({ children, className, ...props }: Props) {\n return (\n <a\n {...props}\n className={`t-component t-button ${className ?? \"\"}`}\n >\n {children}\n </a>\n );\n}","\"use client\";\n\nimport React from \"react\";\n\ntype Props = React.InputHTMLAttributes<HTMLInputElement>;\n\nexport default function TInput({ className, ...props}: Props) {\n return (\n <input\n {...props}\n className={`t-component t-input ${className ?? \"\"}`}\n />\n );\n}","\"use client\";\n\nimport React from \"react\";\n\ntype Props = React.HTMLAttributes<HTMLDivElement>\n\nexport default function TNavbar({ children, className, ...props }: Props) {\n return (\n <div\n {...props}\n className={`t-navbar ${className ?? \"\"}`}\n >\n {children}\n </div>\n );\n}"],"mappings":";AAQI;;;ACAA,gBAAAA,YAAA;;;ACAA,gBAAAC,YAAA;","names":["jsx","jsx"]}
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@t-apps/ui",
3
+ "version": "0.1.0",
4
+ "main": "./dist/index.js",
5
+ "module": "./dist/index.mjs",
6
+ "types": "./dist/index.d.ts",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.mjs",
14
+ "require": "./dist/index.js"
15
+ },
16
+ "./style.css": "./dist/index.css"
17
+ },
18
+ "scripts": {
19
+ "build": "tsup",
20
+ "prepublishOnly": "npm run build"
21
+ },
22
+ "peerDependencies": {
23
+ "react": "^18 || ^19",
24
+ "react-dom": "^18 || ^19"
25
+ }
26
+ }