admin-panel-ui-components 0.1.0 → 0.1.2
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 +1 -0
- package/dist/Button.js +2 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/package.json +3 -6
- package/src/Button.tsx +6 -1
- package/src/index.ts +1 -2
- package/dist/Form.d.ts +0 -5
- package/dist/Form.js +0 -6
- package/dist/index.css +0 -1
- package/src/Form.tsx +0 -7
- package/src/index.css +0 -1
package/dist/Button.d.ts
CHANGED
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
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "admin-panel-ui-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
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": "^
|
|
12
|
-
"react-dom": "^
|
|
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
|
|
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/dist/Form.d.ts
DELETED
package/dist/Form.js
DELETED
package/dist/index.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import "tailwindcss";
|
package/src/Form.tsx
DELETED
package/src/index.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import "tailwindcss";
|