@t-apps/ui 0.1.0 → 0.1.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.
@@ -1 +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":[]}
1
+ {"version":3,"sources":["../src/style.css"],"sourcesContent":[":root {\r\n --fg: #0B1220;\r\n\r\n --bg-1: #FFFFFF;\r\n --bg-2: #EEF3FF;\r\n --bg-3: #D9E4FF;\r\n\r\n --component-bg: #F5F8FF;\r\n --component-fg: var(--fg);\r\n --component-bg-hover: #EAF0FF;\r\n\r\n --accent: #2D6BFF;\r\n --accent-hover: #1E4FD6;\r\n\r\n --muted: #5B6B86;\r\n\r\n --border: #D7E1F5;\r\n}\r\n\r\n@media (prefers-color-scheme: dark) {\r\n :root {\r\n --fg: #EAF0FF;\r\n\r\n --bg-1: #070D1A;\r\n --bg-2: #0C1528;\r\n --bg-3: #121F3A;\r\n\r\n --component-bg: #0F1B33;\r\n --component-fg: var(--fg);\r\n --component-bg-hover: #16264A;\r\n\r\n --accent: #4A8CFF;\r\n --accent-hover: #6AA3FF;\r\n\r\n --muted: #93A4C7;\r\n\r\n --border: #1F2E4D;\r\n }\r\n}\r\n\r\nbody { \r\n background: var(--bg-1); \r\n color: var(--fg); \r\n font-family: Arial, Helvetica, sans-serif; \r\n} \r\n\r\n.t-component { \r\n display: block; \r\n width: fit-content; \r\n background-color: var(--component-bg); \r\n color: var(--component-fg); \r\n padding: 4px 10px; \r\n border: var(--border) 2px solid; \r\n border-radius: 4px; \r\n outline: none; \r\n} \r\n\r\n.t-button { \r\n user-select: none; \r\n cursor: pointer; \r\n} \r\n\r\n.t-button:hover { \r\n background-color: var(--component-bg-hover); \r\n} \r\n\r\n.t-button:active { \r\n background-color: var(--component-bg); \r\n}\r\n\r\n.t-navbar {\r\n display: flex;\r\n position: relative;\r\n width: 100%;\r\n height: 60px;\r\n background-color: var(--bg-2);\r\n align-items: center;\r\n padding: 4px;\r\n box-sizing: border-box;\r\n gap: 4px;\r\n}\r\n\r\n.t-center {\r\n position: absolute;\r\n left: 50%;\r\n transform: translateX(-50%);\r\n}\r\n\r\n.t-end {\r\n margin-left: auto;\r\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":[]}
package/dist/index.d.mts CHANGED
@@ -1,2 +1,20 @@
1
+ import React from 'react';
1
2
 
2
- export { }
3
+ type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
4
+ href?: never;
5
+ as?: "button";
6
+ };
7
+ type LinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & {
8
+ href: string;
9
+ as: "a";
10
+ };
11
+ type Props$2 = ButtonProps | LinkProps;
12
+ declare function TButton({ children, className, ...props }: Props$2): React.JSX.Element;
13
+
14
+ type Props$1 = React.InputHTMLAttributes<HTMLInputElement>;
15
+ declare function TInput({ className, ...props }: Props$1): React.JSX.Element;
16
+
17
+ type Props = React.HTMLAttributes<HTMLDivElement>;
18
+ declare function TNavbar({ children, className, ...props }: Props): React.JSX.Element;
19
+
20
+ export { TButton, TInput, TNavbar };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,20 @@
1
+ import React from 'react';
1
2
 
2
- export { }
3
+ type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
4
+ href?: never;
5
+ as?: "button";
6
+ };
7
+ type LinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & {
8
+ href: string;
9
+ as: "a";
10
+ };
11
+ type Props$2 = ButtonProps | LinkProps;
12
+ declare function TButton({ children, className, ...props }: Props$2): React.JSX.Element;
13
+
14
+ type Props$1 = React.InputHTMLAttributes<HTMLInputElement>;
15
+ declare function TInput({ className, ...props }: Props$1): React.JSX.Element;
16
+
17
+ type Props = React.HTMLAttributes<HTMLDivElement>;
18
+ declare function TNavbar({ children, className, ...props }: Props): React.JSX.Element;
19
+
20
+ export { TButton, TInput, TNavbar };
package/dist/index.js CHANGED
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
6
10
  var __copyProps = (to, from, except, desc) => {
7
11
  if (from && typeof from === "object" || typeof from === "function") {
8
12
  for (let key of __getOwnPropNames(from))
@@ -15,14 +19,50 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
15
19
 
16
20
  // src/index.ts
17
21
  var index_exports = {};
22
+ __export(index_exports, {
23
+ TButton: () => TButton,
24
+ TInput: () => TInput,
25
+ TNavbar: () => TNavbar
26
+ });
18
27
  module.exports = __toCommonJS(index_exports);
19
28
 
20
29
  // src/components/TButton.tsx
21
30
  var import_jsx_runtime = require("react/jsx-runtime");
31
+ function TButton({ children, className, ...props }) {
32
+ if (props.as === "a") {
33
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", { ...props, className: `t-component t-button ${className ?? ""}`, children });
34
+ }
35
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { ...props, className: `t-component t-button ${className ?? ""}`, children });
36
+ }
22
37
 
23
38
  // src/components/TInput.tsx
24
39
  var import_jsx_runtime2 = require("react/jsx-runtime");
40
+ function TInput({ className, ...props }) {
41
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
42
+ "input",
43
+ {
44
+ ...props,
45
+ className: `t-component t-input ${className ?? ""}`
46
+ }
47
+ );
48
+ }
25
49
 
26
50
  // src/components/TNavbar.tsx
27
51
  var import_jsx_runtime3 = require("react/jsx-runtime");
52
+ function TNavbar({ children, className, ...props }) {
53
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
54
+ "div",
55
+ {
56
+ ...props,
57
+ className: `t-navbar ${className ?? ""}`,
58
+ children
59
+ }
60
+ );
61
+ }
62
+ // Annotate the CommonJS export names for ESM import in node:
63
+ 0 && (module.exports = {
64
+ TButton,
65
+ TInput,
66
+ TNavbar
67
+ });
28
68
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +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"]}
1
+ {"version":3,"sources":["../src/index.ts","../src/components/TButton.tsx","../src/components/TInput.tsx","../src/components/TNavbar.tsx"],"sourcesContent":["export { default as TButton } from \"./components/TButton\";\r\nexport { default as TInput } from \"./components/TInput\";\r\nexport { default as TNavbar } from \"./components/TNavbar\";\r\n\r\nimport \"./style.css\";","\"use client\";\r\n\r\nimport React from \"react\";\r\n\r\ntype ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {\r\n href?: never;\r\n as?: \"button\";\r\n};\r\n\r\ntype LinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & {\r\n href: string;\r\n as: \"a\";\r\n};\r\n\r\ntype Props = ButtonProps | LinkProps;\r\n\r\nexport default function TButton({ children, className, ...props }: Props) {\r\n if (props.as === \"a\") {\r\n return (\r\n <a {...props} className={`t-component t-button ${className ?? \"\"}`}>\r\n {children}\r\n </a>\r\n );\r\n }\r\n\r\n return (\r\n <button {...props} className={`t-component t-button ${className ?? \"\"}`}>\r\n {children}\r\n </button>\r\n );\r\n}","\"use client\";\r\n\r\nimport React from \"react\";\r\n\r\ntype Props = React.InputHTMLAttributes<HTMLInputElement>;\r\n\r\nexport default function TInput({ className, ...props}: Props) {\r\n return (\r\n <input\r\n {...props}\r\n className={`t-component t-input ${className ?? \"\"}`}\r\n />\r\n );\r\n}","\"use client\";\r\n\r\nimport React from \"react\";\r\n\r\ntype Props = React.HTMLAttributes<HTMLDivElement>\r\n\r\nexport default function TNavbar({ children, className, ...props }: Props) {\r\n return (\r\n <div\r\n {...props}\r\n className={`t-navbar ${className ?? \"\"}`}\r\n >\r\n {children}\r\n </div>\r\n );\r\n}"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACmBU;AAHK,SAAR,QAAyB,EAAE,UAAU,WAAW,GAAG,MAAM,GAAU;AACxE,MAAI,MAAM,OAAO,KAAK;AAClB,WACI,4CAAC,OAAG,GAAG,OAAO,WAAW,wBAAwB,aAAa,EAAE,IAC3D,UACL;AAAA,EAER;AAEA,SACI,4CAAC,YAAQ,GAAG,OAAO,WAAW,wBAAwB,aAAa,EAAE,IAChE,UACL;AAEN;;;ACtBI,IAAAA,sBAAA;AAFW,SAAR,OAAwB,EAAE,WAAW,GAAG,MAAK,GAAU;AAC5D,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,uBAAuB,aAAa,EAAE;AAAA;AAAA,EACnD;AAEJ;;;ACLI,IAAAC,sBAAA;AAFW,SAAR,QAAyB,EAAE,UAAU,WAAW,GAAG,MAAM,GAAU;AACxE,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,YAAY,aAAa,EAAE;AAAA,MAErC;AAAA;AAAA,EACH;AAEJ;","names":["import_jsx_runtime","import_jsx_runtime"]}
package/dist/index.mjs CHANGED
@@ -1,9 +1,39 @@
1
1
  // src/components/TButton.tsx
2
2
  import { jsx } from "react/jsx-runtime";
3
+ function TButton({ children, className, ...props }) {
4
+ if (props.as === "a") {
5
+ return /* @__PURE__ */ jsx("a", { ...props, className: `t-component t-button ${className ?? ""}`, children });
6
+ }
7
+ return /* @__PURE__ */ jsx("button", { ...props, className: `t-component t-button ${className ?? ""}`, children });
8
+ }
3
9
 
4
10
  // src/components/TInput.tsx
5
11
  import { jsx as jsx2 } from "react/jsx-runtime";
12
+ function TInput({ className, ...props }) {
13
+ return /* @__PURE__ */ jsx2(
14
+ "input",
15
+ {
16
+ ...props,
17
+ className: `t-component t-input ${className ?? ""}`
18
+ }
19
+ );
20
+ }
6
21
 
7
22
  // src/components/TNavbar.tsx
8
23
  import { jsx as jsx3 } from "react/jsx-runtime";
24
+ function TNavbar({ children, className, ...props }) {
25
+ return /* @__PURE__ */ jsx3(
26
+ "div",
27
+ {
28
+ ...props,
29
+ className: `t-navbar ${className ?? ""}`,
30
+ children
31
+ }
32
+ );
33
+ }
34
+ export {
35
+ TButton,
36
+ TInput,
37
+ TNavbar
38
+ };
9
39
  //# sourceMappingURL=index.mjs.map
@@ -1 +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"]}
1
+ {"version":3,"sources":["../src/components/TButton.tsx","../src/components/TInput.tsx","../src/components/TNavbar.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport React from \"react\";\r\n\r\ntype ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {\r\n href?: never;\r\n as?: \"button\";\r\n};\r\n\r\ntype LinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & {\r\n href: string;\r\n as: \"a\";\r\n};\r\n\r\ntype Props = ButtonProps | LinkProps;\r\n\r\nexport default function TButton({ children, className, ...props }: Props) {\r\n if (props.as === \"a\") {\r\n return (\r\n <a {...props} className={`t-component t-button ${className ?? \"\"}`}>\r\n {children}\r\n </a>\r\n );\r\n }\r\n\r\n return (\r\n <button {...props} className={`t-component t-button ${className ?? \"\"}`}>\r\n {children}\r\n </button>\r\n );\r\n}","\"use client\";\r\n\r\nimport React from \"react\";\r\n\r\ntype Props = React.InputHTMLAttributes<HTMLInputElement>;\r\n\r\nexport default function TInput({ className, ...props}: Props) {\r\n return (\r\n <input\r\n {...props}\r\n className={`t-component t-input ${className ?? \"\"}`}\r\n />\r\n );\r\n}","\"use client\";\r\n\r\nimport React from \"react\";\r\n\r\ntype Props = React.HTMLAttributes<HTMLDivElement>\r\n\r\nexport default function TNavbar({ children, className, ...props }: Props) {\r\n return (\r\n <div\r\n {...props}\r\n className={`t-navbar ${className ?? \"\"}`}\r\n >\r\n {children}\r\n </div>\r\n );\r\n}"],"mappings":";AAmBU;AAHK,SAAR,QAAyB,EAAE,UAAU,WAAW,GAAG,MAAM,GAAU;AACxE,MAAI,MAAM,OAAO,KAAK;AAClB,WACI,oBAAC,OAAG,GAAG,OAAO,WAAW,wBAAwB,aAAa,EAAE,IAC3D,UACL;AAAA,EAER;AAEA,SACI,oBAAC,YAAQ,GAAG,OAAO,WAAW,wBAAwB,aAAa,EAAE,IAChE,UACL;AAEN;;;ACtBI,gBAAAA,YAAA;AAFW,SAAR,OAAwB,EAAE,WAAW,GAAG,MAAK,GAAU;AAC5D,SACE,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,uBAAuB,aAAa,EAAE;AAAA;AAAA,EACnD;AAEJ;;;ACLI,gBAAAC,YAAA;AAFW,SAAR,QAAyB,EAAE,UAAU,WAAW,GAAG,MAAM,GAAU;AACxE,SACE,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,YAAY,aAAa,EAAE;AAAA,MAErC;AAAA;AAAA,EACH;AAEJ;","names":["jsx","jsx"]}
package/package.json CHANGED
@@ -1,26 +1,32 @@
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
- }
1
+ {
2
+ "name": "@t-apps/ui",
3
+ "version": "0.1.2",
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
+ "devDependencies": {
27
+ "@types/react": "^19.2.17",
28
+ "@types/react-dom": "^19.2.3",
29
+ "tsup": "^8.5.1",
30
+ "typescript": "^6.0.3"
31
+ }
32
+ }