admin-panel-ui-components 0.1.0 → 0.1.1

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 CHANGED
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import "./index.css";
2
3
  interface ButtonProps {
3
4
  children: React.ReactNode;
4
5
  variant?: "primary" | "secondary";
package/dist/Button.js CHANGED
@@ -1,10 +1,11 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "./index.css";
2
3
  var Button = function (_a) {
3
4
  var children = _a.children, _b = _a.variant, variant = _b === void 0 ? "primary" : _b, onClick = _a.onClick;
4
5
  var variants = {
5
6
  primary: "bg-blue-600 text-white hover:bg-blue-700",
6
7
  secondary: "bg-gray-600 text-white hover:bg-gray-700",
7
8
  };
8
- return _jsx("button", { className: "px-6 py-3 rounded-lg font-semibold transition ".concat(variants[variant]), onClick: onClick, children: children });
9
+ return (_jsx("button", { className: "px-6 py-3 rounded-lg font-semibold transition ".concat(variants[variant]), onClick: onClick, children: children }));
9
10
  };
10
11
  export default Button;
package/dist/index.d.ts CHANGED
@@ -1,2 +1 @@
1
1
  export { default as Button } from "./Button";
2
- export { default as Form } from "./Form";
package/dist/index.js CHANGED
@@ -1,2 +1 @@
1
1
  export { default as Button } from "./Button";
2
- export { default as Form } from "./Form";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "admin-panel-ui-components",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,8 +8,8 @@
8
8
  "build": "tsc && cp src/*.css dist/"
9
9
  },
10
10
  "peerDependencies": {
11
- "react": "^18.0.0",
12
- "react-dom": "^18.0.0"
11
+ "react": "^19.2.3",
12
+ "react-dom": "^19.2.3"
13
13
  },
14
14
  "keywords": [],
15
15
  "author": "",
@@ -20,8 +20,5 @@
20
20
  "react": "^19.2.3",
21
21
  "react-dom": "^19.2.3",
22
22
  "typescript": "^5.9.3"
23
- },
24
- "dependencies": {
25
- "tailwindcss": "^4.1.18"
26
23
  }
27
24
  }
package/src/Button.tsx CHANGED
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import "./index.css";
2
3
 
3
4
  interface ButtonProps {
4
5
  children: React.ReactNode;
@@ -12,7 +13,11 @@ const Button: React.FC<ButtonProps> = ({ children, variant = "primary", onClick
12
13
  secondary: "bg-gray-600 text-white hover:bg-gray-700",
13
14
  };
14
15
 
15
- return <button className={`px-6 py-3 rounded-lg font-semibold transition ${variants[variant]}`} onClick={onClick}>{children}</button>;
16
+ return (
17
+ <button className={`px-6 py-3 rounded-lg font-semibold transition ${variants[variant]}`} onClick={onClick}>
18
+ {children}
19
+ </button>
20
+ );
16
21
  };
17
22
 
18
23
  export default Button;
package/src/index.ts CHANGED
@@ -1,2 +1 @@
1
- export { default as Button } from "./Button";
2
- export { default as Form } from "./Form";
1
+ export { default as Button } from "./Button";
package/src/Form.tsx DELETED
@@ -1,7 +0,0 @@
1
- import React from "react";
2
-
3
- const Form: React.FC<{ children: React.ReactNode }> = ({ children }) => {
4
- return <form>{children}</form>;
5
- };
6
-
7
- export default Form;
package/src/index.css DELETED
@@ -1 +0,0 @@
1
- @import "tailwindcss";