@ludo.ninja/components 2.1.9 → 2.1.10

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.
@@ -14,7 +14,7 @@ const StyledCardCheckBox = styled_components_1.default.div `
14
14
  position: absolute;
15
15
  top: 16px;
16
16
  right: 16px;
17
- z-index: 1;
17
+ z-index: 10;
18
18
 
19
19
  .cardCheckboxLabel {
20
20
  cursor: pointer;
@@ -86,7 +86,11 @@ const StyledCardCheckBox = styled_components_1.default.div `
86
86
  // Component
87
87
  const CardCheckBox = ({ isActiveCheckbox, onChange, }) => {
88
88
  const id = (0, react_1.useId)();
89
- return ((0, jsx_runtime_1.jsx)(StyledCardCheckBox, { children: (0, jsx_runtime_1.jsxs)("label", { htmlFor: id, className: "cardCheckboxLabel", children: [(0, jsx_runtime_1.jsx)("input", { className: "cardCheckboxInput", type: "checkbox", name: 'checkbox', id: id, onChange: onChange, checked: isActiveCheckbox }), (0, jsx_runtime_1.jsx)("span", { className: "cardCustomCheckbox" })] }) }));
89
+ return ((0, jsx_runtime_1.jsx)(StyledCardCheckBox, { onClick: (e) => {
90
+ console.log("StyledCardCheckBox click");
91
+ e.preventDefault();
92
+ e.stopPropagation();
93
+ }, children: (0, jsx_runtime_1.jsxs)("label", { htmlFor: id, className: "cardCheckboxLabel", children: [(0, jsx_runtime_1.jsx)("input", { className: "cardCheckboxInput", type: "checkbox", name: 'checkbox', id: id, onChange: onChange, checked: isActiveCheckbox }), (0, jsx_runtime_1.jsx)("span", { className: "cardCustomCheckbox" })] }) }));
90
94
  };
91
95
  // Export
92
96
  exports.default = CardCheckBox;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/components",
3
- "version": "2.1.9",
3
+ "version": "2.1.10",
4
4
  "private": false,
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",