@ozgurakgul/ui 1.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.
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from "react";
2
+ interface ButtonProps {
3
+ children: ReactNode;
4
+ className?: string;
5
+ appName: string;
6
+ }
7
+ export declare const Button: ({ children, className, appName }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../src/button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,UAAU,WAAW;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,MAAM,GAAI,kCAAkC,WAAW,4CASnE,CAAC"}
package/dist/button.js ADDED
@@ -0,0 +1,5 @@
1
+ "use client";
2
+ import { jsxs as _jsxs } from "react/jsx-runtime";
3
+ export const Button = ({ children, className, appName }) => {
4
+ return (_jsxs("button", { className: className, onClick: () => alert(`Hello from your ${appName} app!`), children: [" test", children] }));
5
+ };
package/dist/card.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ import { type JSX } from "react";
2
+ export declare function Card({ className, title, children, href, }: {
3
+ className?: string;
4
+ title: string;
5
+ children: React.ReactNode;
6
+ href: string;
7
+ }): JSX.Element;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../src/card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,wBAAgB,IAAI,CAAC,EACnB,SAAS,EACT,KAAK,EACL,QAAQ,EACR,IAAI,GACL,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,GAAG,CAAC,OAAO,CAcd"}
package/dist/card.js ADDED
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ export function Card({ className, title, children, href, }) {
3
+ return (_jsxs("a", { className: className, href: `${href}?utm_source=create-turbo&utm_medium=basic&utm_campaign=create-turbo"`, rel: "noopener noreferrer", target: "_blank", children: [_jsxs("h2", { children: [title, " ", _jsx("span", { children: "->" })] }), _jsx("p", { children: children })] }));
4
+ }
package/dist/code.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ import { type JSX } from "react";
2
+ export declare function Code({ children, className, }: {
3
+ children: React.ReactNode;
4
+ className?: string;
5
+ }): JSX.Element;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code.d.ts","sourceRoot":"","sources":["../src/code.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,wBAAgB,IAAI,CAAC,EACnB,QAAQ,EACR,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,GAAG,CAAC,OAAO,CAEd"}
package/dist/code.js ADDED
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export function Code({ children, className, }) {
3
+ return _jsx("code", { className: className, children: children });
4
+ }
@@ -0,0 +1 @@
1
+ export * from "./button";
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from "./button";
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "@ozgurakgul/ui",
3
+ "version": "1.1.0",
4
+ "private": false,
5
+ "exports": {
6
+ "./*": "./src/*.tsx"
7
+ },
8
+ "scripts": {
9
+ "lint": "eslint . --max-warnings 0",
10
+ "generate:component": "turbo gen react-component",
11
+ "check-types": "tsc --noEmit"
12
+ },
13
+ "devDependencies": {
14
+ "@repo/eslint-config": "*",
15
+ "@repo/typescript-config": "*",
16
+ "@types/node": "^22.15.3",
17
+ "@types/react": "19.2.2",
18
+ "@types/react-dom": "19.2.2",
19
+ "eslint": "^9.39.1",
20
+ "typescript": "5.9.2"
21
+ },
22
+ "dependencies": {
23
+ "react": "^19.2.0",
24
+ "react-dom": "^19.2.0"
25
+ },
26
+ "main": "index.js",
27
+ "keywords": [],
28
+ "files": ["dist"],
29
+ "author": "",
30
+ "license": "ISC",
31
+ "description": ""
32
+ }