@megha-ui/react 1.2.211 → 1.2.212

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.
@@ -23,13 +23,18 @@ const Toggle = ({ isChecked = false, onChange, label, disabled = false, activeCo
23
23
  backgroundColor: activeColor,
24
24
  };
25
25
  const sliderBeforeStyles = {
26
+ position: "absolute",
27
+ content: '""',
26
28
  height: "1rem",
27
29
  width: "1rem",
30
+ left: "0.125rem",
31
+ bottom: "0.125rem",
28
32
  backgroundColor: "var(--background)",
29
33
  transition: "0.4s",
30
34
  borderRadius: "50%",
31
35
  };
32
36
  const sliderBeforeCheckedStyles = {
37
+ left: 0,
33
38
  transform: "translateX(1.375rem)",
34
39
  };
35
40
  return (_jsxs("div", { className: `toggle-switch-container ${className}`, style: Object.assign(Object.assign({}, style), { display: "flex", alignItems: "center" }), children: [label && labelPosition === "left" && (_jsx("span", { className: "toggle-switch-label", style: { marginRight: 12 }, children: label })), _jsxs("label", { className: "toggle-switch", style: defaultStyles, children: [_jsx("input", { type: "checkbox", name: name, id: id, checked: isChecked, onChange: handleToggleChange, disabled: disabled, className: "toggle-switch-checkbox", style: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.211",
3
+ "version": "1.2.212",
4
4
  "description": "A collection of reusable UI components for React applications, built with TypeScript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",