@perfectest/react 0.1.3 → 0.1.5

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # @perfectest/react
2
+
3
+ React components and hooks.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @perfectest/react
9
+ # or
10
+ pnpm add @perfectest/react
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```tsx
16
+ import { Button } from "@perfectest/react";
17
+ // or import specific components
18
+ import { Button } from "@perfectest/react/button";
19
+ ```
20
+
21
+ ## Peer Dependencies
22
+
23
+ - react >= 16.0.0
24
+ - react-dom >= 16.0.0
25
+
26
+ ## License
27
+
28
+ MIT
29
+
@@ -1 +1 @@
1
- {"version":3,"file":"button.js","sources":["../../../src/button.tsx"],"sourcesContent":["\"use client\";\n\nimport { ReactNode } from \"react\";\nimport { cn } from \"@perfectest/shared\";\n\nexport interface ButtonProps {\n children: ReactNode;\n className?: string;\n appName: string;\n}\n\nexport const Button = ({ children, className, appName }: ButtonProps) => {\n return (\n <button\n className={cn(className)}\n onClick={() => alert(`Hello from your ${appName} app!`)}\n >\n {children}\n </button>\n );\n};\n\n"],"names":[],"mappings":";;;;AAWO;;AASP;;"}
1
+ {"version":3,"file":"button.js","sources":["../../../src/button.tsx"],"sourcesContent":["\"use client\";\n\nimport { ReactNode } from \"react\";\nimport { cn } from \"@perfectest/shared\";\n\nexport interface ButtonProps {\n children: ReactNode;\n className?: string;\n appName: string;\n}\n\nexport const Button = ({ children, className, appName }: ButtonProps) => {\n return (\n <button\n className={cn(className)}\n onClick={() => alert(`Hello from your ${appName} app!`)}\n >\n {children}\n </button>\n );\n};\n"],"names":[],"mappings":";;;;AAWO;;AASP;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"card.js","sources":["../../../src/card.tsx"],"sourcesContent":["import { type JSX } from \"react\";\nimport { cn } from \"@perfectest/shared\";\n\nexport interface CardProps {\n className?: string;\n title: string;\n children: React.ReactNode;\n href: string;\n}\n\nexport function Card({\n className,\n title,\n children,\n href,\n}: CardProps): JSX.Element {\n return (\n <a\n className={cn(className)}\n href={`${href}?utm_source=create-turbo&utm_medium=basic&utm_campaign=create-turbo\"`}\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n >\n <h2>\n {title} <span>-&gt;</span>\n </h2>\n <p>{children}</p>\n </a>\n );\n}\n\n"],"names":["_jsxs","_jsx"],"mappings":";;;AAUM,SAAU,IAAI,CAAC,EACnB,SAAS,EACT,KAAK,EACL,QAAQ,EACR,IAAI,GACM,EAAA;AACV,IAAA,QACEA,IAAA,CAAA,GAAA,EAAA,EACE,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,EACxB,IAAI,EAAE,CAAA,EAAG,IAAI,CAAA,oEAAA,CAAsE,EACnF,GAAG,EAAC,qBAAqB,EACzB,MAAM,EAAC,QAAQ,EAAA,QAAA,EAAA,CAEfA,wBACG,KAAK,EAAA,GAAA,EAAEC,GAAA,CAAA,MAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAkB,CAAA,EAAA,CACvB,EACLA,GAAA,CAAA,GAAA,EAAA,EAAA,QAAA,EAAI,QAAQ,EAAA,CAAK,CAAA,EAAA,CACf;AAER;;;;"}
1
+ {"version":3,"file":"card.js","sources":["../../../src/card.tsx"],"sourcesContent":["import { type JSX } from \"react\";\nimport { cn } from \"@perfectest/shared\";\n\nexport interface CardProps {\n className?: string;\n title: string;\n children: React.ReactNode;\n href: string;\n}\n\nexport function Card({\n className,\n title,\n children,\n href,\n}: CardProps): JSX.Element {\n return (\n <a\n className={cn(className)}\n href={`${href}?utm_source=create-turbo&utm_medium=basic&utm_campaign=create-turbo\"`}\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n >\n <h2>\n {title} <span>-&gt;</span>\n </h2>\n <p>{children}</p>\n </a>\n );\n}\n"],"names":["_jsxs","_jsx"],"mappings":";;;AAUM,SAAU,IAAI,CAAC,EACnB,SAAS,EACT,KAAK,EACL,QAAQ,EACR,IAAI,GACM,EAAA;AACV,IAAA,QACEA,IAAA,CAAA,GAAA,EAAA,EACE,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,EACxB,IAAI,EAAE,CAAA,EAAG,IAAI,CAAA,oEAAA,CAAsE,EACnF,GAAG,EAAC,qBAAqB,EACzB,MAAM,EAAC,QAAQ,EAAA,QAAA,EAAA,CAEfA,wBACG,KAAK,EAAA,GAAA,EAAEC,GAAA,CAAA,MAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAkB,CAAA,EAAA,CACvB,EACLA,GAAA,CAAA,GAAA,EAAA,EAAA,QAAA,EAAI,QAAQ,EAAA,CAAK,CAAA,EAAA,CACf;AAER;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"code.js","sources":["../../../src/code.tsx"],"sourcesContent":["import { type JSX } from \"react\";\nimport { cn } from \"@perfectest/shared\";\n\nexport interface CodeProps {\n children: React.ReactNode;\n className?: string;\n}\n\nexport function Code({ children, className }: CodeProps): JSX.Element {\n return <code className={cn(className)}>{children}</code>;\n}\n\n"],"names":["_jsx"],"mappings":";;;SAQgB,IAAI,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAa,EAAA;IACrD,OAAOA,GAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,EAAA,QAAA,EAAG,QAAQ,EAAA,CAAQ;AAC1D;;;;"}
1
+ {"version":3,"file":"code.js","sources":["../../../src/code.tsx"],"sourcesContent":["import { type JSX } from \"react\";\nimport { cn } from \"@perfectest/shared\";\n\nexport interface CodeProps {\n children: React.ReactNode;\n className?: string;\n}\n\nexport function Code({ children, className }: CodeProps): JSX.Element {\n return <code className={cn(className)}>{children}</code>;\n}\n"],"names":["_jsx"],"mappings":";;;SAQgB,IAAI,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAa,EAAA;IACrD,OAAOA,GAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,EAAA,QAAA,EAAG,QAAQ,EAAA,CAAQ;AAC1D;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perfectest/react",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,10 +24,12 @@
24
24
  "types": "./dist/types/index.d.ts",
25
25
  "files": [
26
26
  "dist",
27
- "src"
27
+ "src",
28
+ "LICENSE",
29
+ "README.md"
28
30
  ],
29
31
  "dependencies": {
30
- "@perfectest/shared": "0.1.3"
32
+ "@perfectest/shared": "0.1.5"
31
33
  },
32
34
  "peerDependencies": {
33
35
  "react": ">=16.0.0",
package/src/button.tsx CHANGED
@@ -19,4 +19,3 @@ export const Button = ({ children, className, appName }: ButtonProps) => {
19
19
  </button>
20
20
  );
21
21
  };
22
-
package/src/card.tsx CHANGED
@@ -28,4 +28,3 @@ export function Card({
28
28
  </a>
29
29
  );
30
30
  }
31
-
package/src/code.tsx CHANGED
@@ -9,4 +9,3 @@ export interface CodeProps {
9
9
  export function Code({ children, className }: CodeProps): JSX.Element {
10
10
  return <code className={cn(className)}>{children}</code>;
11
11
  }
12
-
package/src/index.ts CHANGED
@@ -10,4 +10,3 @@ export * from "@perfectest/shared";
10
10
  export * from "./button.js";
11
11
  export * from "./card.js";
12
12
  export * from "./code.js";
13
-