admin-panel-ui-components 1.0.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/Button.d.ts +7 -0
- package/dist/Button.js +10 -0
- package/dist/Form.d.ts +5 -0
- package/dist/Form.js +6 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +27 -0
- package/src/Button.tsx +17 -0
- package/src/Form.tsx +7 -0
- package/src/index.css +1 -0
- package/src/index.ts +1 -0
- package/tsconfig.json +22 -0
package/dist/Button.d.ts
ADDED
package/dist/Button.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
var Button = function (_a) {
|
|
3
|
+
var children = _a.children, _b = _a.variant, variant = _b === void 0 ? "primary" : _b;
|
|
4
|
+
var variants = {
|
|
5
|
+
primary: "bg-blue-600 text-white hover:bg-blue-700",
|
|
6
|
+
secondary: "bg-gray-600 text-white hover:bg-gray-700",
|
|
7
|
+
};
|
|
8
|
+
return _jsx("button", { className: "px-6 py-3 rounded-lg font-semibold transition ".concat(variants[variant]), children: children });
|
|
9
|
+
};
|
|
10
|
+
export default Button;
|
package/dist/Form.d.ts
ADDED
package/dist/Form.js
ADDED
package/dist/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "tailwindcss";
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Button } from "./Button";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Button } from "./Button";
|
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "admin-panel-ui-components",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc && cp src/*.css dist/"
|
|
9
|
+
},
|
|
10
|
+
"peerDependencies": {
|
|
11
|
+
"react": "^18.0.0",
|
|
12
|
+
"react-dom": "^18.0.0"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [],
|
|
15
|
+
"author": "",
|
|
16
|
+
"license": "ISC",
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@types/react": "^19.2.7",
|
|
19
|
+
"@types/react-dom": "^19.2.3",
|
|
20
|
+
"react": "^19.2.3",
|
|
21
|
+
"react-dom": "^19.2.3",
|
|
22
|
+
"typescript": "^5.9.3"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"tailwindcss": "^4.1.18"
|
|
26
|
+
}
|
|
27
|
+
}
|
package/src/Button.tsx
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
interface ButtonProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
variant?: "primary" | "secondary";
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
const Button: React.FC<ButtonProps> = ({ children, variant = "primary" }) => {
|
|
9
|
+
const variants = {
|
|
10
|
+
primary: "bg-blue-600 text-white hover:bg-blue-700",
|
|
11
|
+
secondary: "bg-gray-600 text-white hover:bg-gray-700",
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
return <button className={`px-6 py-3 rounded-lg font-semibold transition ${variants[variant]}`}>{children}</button>;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default Button;
|
package/src/Form.tsx
ADDED
package/src/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "tailwindcss";
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Button } from "./Button";
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es5",
|
|
4
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
|
+
"allowJs": true,
|
|
6
|
+
"skipLibCheck": true,
|
|
7
|
+
"esModuleInterop": true,
|
|
8
|
+
"allowSyntheticDefaultImports": true,
|
|
9
|
+
"strict": true,
|
|
10
|
+
"forceConsistentCasingInFileNames": true,
|
|
11
|
+
"module": "esnext",
|
|
12
|
+
"moduleResolution": "node",
|
|
13
|
+
"resolveJsonModule": true,
|
|
14
|
+
"isolatedModules": true,
|
|
15
|
+
"noEmit": false,
|
|
16
|
+
"jsx": "react-jsx",
|
|
17
|
+
"declaration": true,
|
|
18
|
+
"outDir": "dist"
|
|
19
|
+
},
|
|
20
|
+
"include": ["src"],
|
|
21
|
+
"exclude": ["node_modules", "dist"]
|
|
22
|
+
}
|