@zenpatient-org/healthspan-marketing-ui 0.1.160 → 0.1.161

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),o=require("./components/ScienceClientCursor.cjs.js"),c=require("./components/ScienceServerCursor.cjs.js");function u({children:e,backgroundImage:n,cursorLink:i}){return typeof window>"u"?r.jsx(c.ScienceServerCursor,{children:e}):r.jsx(o.ScienceClientCursor,{backgroundImage:n,cursorLink:i,children:e})}exports.ScienceHeroCursor=u;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),t=require("react"),u=require("./components/ScienceClientCursor.cjs.js"),o=require("./components/ScienceServerCursor.cjs.js");function S({children:e,backgroundImage:c,cursorLink:s}){const[i,n]=t.useState(!1);return t.useEffect(()=>{n(!0)},[]),i?r.jsx(u.ScienceClientCursor,{backgroundImage:c,cursorLink:s,children:e}):r.jsx(o.ScienceServerCursor,{children:e})}exports.ScienceHeroCursor=S;
@@ -1,9 +1,14 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { ScienceClientCursor as n } from "./components/ScienceClientCursor.es.js";
3
- import { ScienceServerCursor as t } from "./components/ScienceServerCursor.es.js";
4
- function m({ children: r, backgroundImage: o, cursorLink: i }) {
5
- return typeof window > "u" ? /* @__PURE__ */ e(t, { children: r }) : /* @__PURE__ */ e(n, { backgroundImage: o, cursorLink: i, children: r });
1
+ "use client";
2
+ import { jsx as r } from "react/jsx-runtime";
3
+ import t from "react";
4
+ import { ScienceClientCursor as u } from "./components/ScienceClientCursor.es.js";
5
+ import { ScienceServerCursor as c } from "./components/ScienceServerCursor.es.js";
6
+ function p({ children: e, backgroundImage: o, cursorLink: i }) {
7
+ const [s, n] = t.useState(!1);
8
+ return t.useEffect(() => {
9
+ n(!0);
10
+ }, []), s ? /* @__PURE__ */ r(u, { backgroundImage: o, cursorLink: i, children: e }) : /* @__PURE__ */ r(c, { children: e });
6
11
  }
7
12
  export {
8
- m as ScienceHeroCursor
13
+ p as ScienceHeroCursor
9
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.1.160",
3
+ "version": "0.1.161",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",