@nubitio/ui 0.7.0 → 0.7.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/index.cjs CHANGED
@@ -1444,11 +1444,10 @@ const Toggle = ({ checked, onChange, label, size = "md", disabled = false, "aria
1444
1444
  "aria-hidden": "true"
1445
1445
  })]
1446
1446
  });
1447
- if (!label) return input;
1448
1447
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
1449
1448
  htmlFor: id,
1450
- className: "nb-toggle-row",
1451
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: label }), input]
1449
+ className: label ? "nb-toggle-row" : void 0,
1450
+ children: [label && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: label }), input]
1452
1451
  });
1453
1452
  };
1454
1453
  //#endregion
package/dist/index.mjs CHANGED
@@ -1420,11 +1420,10 @@ const Toggle = ({ checked, onChange, label, size = "md", disabled = false, "aria
1420
1420
  "aria-hidden": "true"
1421
1421
  })]
1422
1422
  });
1423
- if (!label) return input;
1424
1423
  return /* @__PURE__ */ jsxs("label", {
1425
1424
  htmlFor: id,
1426
- className: "nb-toggle-row",
1427
- children: [/* @__PURE__ */ jsx("span", { children: label }), input]
1425
+ className: label ? "nb-toggle-row" : void 0,
1426
+ children: [label && /* @__PURE__ */ jsx("span", { children: label }), input]
1428
1427
  });
1429
1428
  };
1430
1429
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nubitio/ui",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "type": "module",
5
5
  "description": "Visual primitives and theme system for the Nubit admin stack (dialogs, cards, toolbar, light/dark theme).",
6
6
  "license": "MIT",