@ws-ui/shared 0.0.46 → 0.0.47

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
@@ -2913,7 +2913,12 @@ const Wa = (e) => {
2913
2913
  ] })
2914
2914
  },
2915
2915
  e
2916
- ), NE = ({ children: e, size: r, className: n, ...o }) => /* @__PURE__ */ B.jsx(
2916
+ ), NE = ({
2917
+ children: e,
2918
+ size: r,
2919
+ className: n,
2920
+ ...o
2921
+ }) => /* @__PURE__ */ B.jsx(
2917
2922
  "div",
2918
2923
  {
2919
2924
  style: { "--width": `${r || 24}px` },
@@ -7686,34 +7691,32 @@ const Gu = {
7686
7691
  translate: "translate-x-3",
7687
7692
  container: "h-5 w-8"
7688
7693
  }
7689
- }, wR = Vp(
7690
- ({ onChange: e, value: r, size: n = "md", className: o = "ml-auto" }, a) => {
7691
- const u = (c) => {
7692
- e(c);
7693
- };
7694
- return /* @__PURE__ */ B.jsx("div", { className: Nt("flex items-center", o), children: /* @__PURE__ */ B.jsx(
7695
- ZC,
7696
- {
7697
- ref: a,
7698
- checked: r,
7699
- onChange: u,
7700
- onKeyDown: (c) => {
7701
- c.key === "Enter" && u(!r);
7702
- },
7703
- className: `${r ? "bg-primary-dark" : "bg-grey-200"}
7694
+ }, wR = Vp(({ onChange: e, value: r, size: n = "md", className: o = "ml-auto" }, a) => {
7695
+ const u = (c) => {
7696
+ e(c);
7697
+ };
7698
+ return /* @__PURE__ */ B.jsx("div", { className: Nt("flex items-center", o), children: /* @__PURE__ */ B.jsx(
7699
+ ZC,
7700
+ {
7701
+ ref: a,
7702
+ checked: r,
7703
+ onChange: u,
7704
+ onKeyDown: (c) => {
7705
+ c.key === "Enter" && u(!r);
7706
+ },
7707
+ className: `${r ? "bg-primary-dark" : "bg-grey-200"}
7704
7708
  relative inline-flex shrink-0 ${Gu[n].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`,
7705
- children: /* @__PURE__ */ B.jsx(
7706
- "span",
7707
- {
7708
- "aria-hidden": "true",
7709
- className: `${r ? Gu[n].translate : "translate-x-0"}
7709
+ children: /* @__PURE__ */ B.jsx(
7710
+ "span",
7711
+ {
7712
+ "aria-hidden": "true",
7713
+ className: `${r ? Gu[n].translate : "translate-x-0"}
7710
7714
  pointer-events-none inline-block ${Gu[n].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`
7711
- }
7712
- )
7713
- }
7714
- ) });
7715
- }
7716
- ), bR = ({
7715
+ }
7716
+ )
7717
+ }
7718
+ ) });
7719
+ }), bR = ({
7717
7720
  children: e,
7718
7721
  label: r,
7719
7722
  placement: n = "top",