admin-panel-ui-components 0.1.1 → 0.1.3

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