powell-react 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import "./Button.css";
3
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
+ variant?: "primary" | "secondary";
5
+ }
6
+ declare const Button: React.FC<ButtonProps>;
7
+ export default Button;
@@ -0,0 +1,2 @@
1
+ import Button from "./Button";
2
+ export default Button;
@@ -0,0 +1,2 @@
1
+ declare const Input: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Input;
@@ -0,0 +1,2 @@
1
+ import Input from "./Input";
2
+ export default Input;
@@ -0,0 +1,2 @@
1
+ export { default as Button } from "./Button";
2
+ export { default as Input } from "./Input";
@@ -0,0 +1 @@
1
+ export * from "./components";
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+
4
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
5
+ variant?: "primary" | "secondary";
6
+ }
7
+ declare const Button: React.FC<ButtonProps>;
8
+
9
+ declare const Input: () => react_jsx_runtime.JSX.Element;
10
+
11
+ export { Button, Input };
package/package.json ADDED
@@ -0,0 +1,79 @@
1
+ {
2
+ "name": "powell-react",
3
+ "version": "0.0.1",
4
+ "main": "dist/cjs/index.js",
5
+ "module": "dist/esm/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "scripts": {
11
+ "dev": "rollup -c --watch",
12
+ "build": "rollup -c",
13
+ "storybook": "storybook dev -p 6006",
14
+ "build-storybook": "storybook build"
15
+ },
16
+ "babel": {
17
+ "sourceType": "unambiguous",
18
+ "presets": [
19
+ [
20
+ "@babel/preset-env",
21
+ {
22
+ "targets": {
23
+ "chrome": 100,
24
+ "safari": 15,
25
+ "firefox": 91
26
+ }
27
+ }
28
+ ],
29
+ [
30
+ "@babel/preset-react",
31
+ {
32
+ "runtime": "automatic"
33
+ }
34
+ ],
35
+ "@babel/preset-typescript"
36
+ ]
37
+ },
38
+ "author": "",
39
+ "license": "ISC",
40
+ "description": "",
41
+ "devDependencies": {
42
+ "@babel/core": "^7.24.6",
43
+ "@babel/preset-env": "^7.24.6",
44
+ "@babel/preset-react": "^7.24.6",
45
+ "@babel/preset-typescript": "^7.24.6",
46
+ "@chromatic-com/storybook": "1.5.0",
47
+ "@rollup/plugin-commonjs": "^25.0.8",
48
+ "@rollup/plugin-node-resolve": "^15.2.3",
49
+ "@rollup/plugin-typescript": "^11.1.6",
50
+ "@storybook/addon-essentials": "^8.1.5",
51
+ "@storybook/addon-interactions": "^8.1.5",
52
+ "@storybook/addon-links": "^8.1.5",
53
+ "@storybook/addon-onboarding": "^8.1.5",
54
+ "@storybook/addon-webpack5-compiler-swc": "1.0.3",
55
+ "@storybook/blocks": "^8.1.5",
56
+ "@storybook/react": "^8.1.5",
57
+ "@storybook/react-webpack5": "^8.1.5",
58
+ "@storybook/test": "^8.1.5",
59
+ "@types/react": "^18.3.3",
60
+ "postcss": "^8.4.38",
61
+ "react": "^18.3.1",
62
+ "react-dom": "^18.3.1",
63
+ "rollup": "^4.18.0",
64
+ "rollup-plugin-dts": "^6.1.1",
65
+ "rollup-plugin-postcss": "^4.0.2",
66
+ "storybook": "^8.1.5",
67
+ "tslib": "^2.6.2",
68
+ "typescript": "^5.4.5"
69
+ },
70
+ "peerDependencies": {
71
+ "react": "^18.2.0"
72
+ },
73
+ "dependencies": {
74
+ "formik": "^2.4.6",
75
+ "primeicons": "^7.0.0",
76
+ "primereact": "^10.8.4",
77
+ "yup": "^1.4.0"
78
+ }
79
+ }