@ws-ui/shared 1.11.6 → 1.11.8
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.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +8 -7
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -6773,20 +6773,21 @@ const Jl = {
|
|
|
6773
6773
|
translate: "translate-x-3",
|
|
6774
6774
|
container: "h-5 w-8"
|
|
6775
6775
|
}
|
|
6776
|
-
}, Hk = Hv(({ onChange: e, value: t, size: r = "md", className: i = "ml-auto" },
|
|
6777
|
-
const
|
|
6778
|
-
e(
|
|
6776
|
+
}, Hk = Hv(({ onChange: e, value: t, size: r = "md", className: i = "ml-auto", ...a }, s) => {
|
|
6777
|
+
const l = (c) => {
|
|
6778
|
+
e(c);
|
|
6779
6779
|
};
|
|
6780
6780
|
return /* @__PURE__ */ j("div", { className: je("flex items-center", i), children: /* @__PURE__ */ j(
|
|
6781
6781
|
Rk,
|
|
6782
6782
|
{
|
|
6783
6783
|
as: "span",
|
|
6784
|
-
ref:
|
|
6784
|
+
ref: s,
|
|
6785
6785
|
checked: t,
|
|
6786
|
-
onChange:
|
|
6787
|
-
onKeyDown: (
|
|
6788
|
-
|
|
6786
|
+
onChange: l,
|
|
6787
|
+
onKeyDown: (c) => {
|
|
6788
|
+
c.key === "Enter" && l(!t);
|
|
6789
6789
|
},
|
|
6790
|
+
...a,
|
|
6790
6791
|
className: `${t ? "bg-primary-dark" : "bg-grey-200"}
|
|
6791
6792
|
relative inline-flex shrink-0 ${Jl[r].container} cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,
|
|
6792
6793
|
children: /* @__PURE__ */ j(
|