@ws-ui/shared 1.11.6 → 1.11.7

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.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" }, a) => {
6777
- const s = (l) => {
6778
- e(l);
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: a,
6784
+ ref: s,
6785
6785
  checked: t,
6786
- onChange: s,
6787
- onKeyDown: (l) => {
6788
- l.key === "Enter" && s(!t);
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(