poc-react-shared-components 1.0.4 → 1.0.5

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.
@@ -5,7 +5,7 @@
5
5
  padding: 10px;
6
6
  margin: 10px auto;
7
7
  }
8
- button {
8
+ .card-btn {
9
9
  margin: 0px 20px;
10
10
  background: limegreen;
11
11
  border: none;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import './employeeCard.css';
3
3
  function EmployeeCard({ employee, onEdit, onDelete, cardClass }) {
4
- return (_jsxs("div", { className: `card ${cardClass}`, children: [_jsxs("p", { children: [_jsx("strong", { children: "Name:" }), " ", employee.name] }), _jsxs("p", { children: [_jsx("strong", { children: "Email:" }), " ", employee.email] }), _jsx("button", { onClick: () => onEdit === null || onEdit === void 0 ? void 0 : onEdit(employee), children: "Edit" }), _jsx("button", { style: { backgroundColor: "red" }, onClick: () => onDelete === null || onDelete === void 0 ? void 0 : onDelete(employee.id), children: "Delete" })] }));
4
+ return (_jsxs("div", { className: `card ${cardClass}`, children: [_jsxs("p", { children: [_jsx("strong", { children: "Name:" }), " ", employee.name] }), _jsxs("p", { children: [_jsx("strong", { children: "Email:" }), " ", employee.email] }), _jsx("button", { className: 'card-btn', onClick: () => onEdit === null || onEdit === void 0 ? void 0 : onEdit(employee), children: "Edit" }), _jsx("button", { className: 'card-btn', style: { backgroundColor: "red" }, onClick: () => onDelete === null || onDelete === void 0 ? void 0 : onDelete(employee.id), children: "Delete" })] }));
5
5
  }
6
6
  export default EmployeeCard;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poc-react-shared-components",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Reusable shared React components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",