@zenpatient-org/healthspan-marketing-ui 0.1.118 → 0.1.120
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/components/Cursor/components/ClientCursor.cjs.js +1 -1
- package/dist/components/Cursor/components/ClientCursor.es.js +18 -18
- package/dist/components/HighlightedTitle/HighlightedTitle.cjs.js +1 -1
- package/dist/components/HighlightedTitle/HighlightedTitle.es.js +14 -14
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +31 -31
- package/dist/components/TextInput/textInput.module.css.cjs.js +1 -1
- package/dist/components/TextInput/textInput.module.css.es.js +20 -18
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/modules/Testimonial/components/TextCard/TextCard.cjs.js +1 -1
- package/dist/modules/Testimonial/components/TextCard/TextCard.es.js +17 -17
- package/dist/pageComponents/Footer/components/TopTreatmentsSlider/TopTreatmentsSlider.cjs.js +1 -1
- package/dist/pageComponents/Footer/components/TopTreatmentsSlider/TopTreatmentsSlider.es.js +6 -6
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),e=require("react"),x=require("react-dom"),q=require("../../../utils/cn/cn.cjs.js"),b=require("../../Typography/Typography.cjs.js"),s=require("../cursor.module.css.cjs.js");function g({children:c,label:a,colorScheme:l}){const[r,d]=e.useState({x:0,y:0}),[f,o]=e.useState(!1),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),e=require("react"),x=require("react-dom"),q=require("../../../utils/cn/cn.cjs.js"),b=require("../../Typography/Typography.cjs.js"),s=require("../cursor.module.css.cjs.js");function g({children:c,label:a,colorScheme:l}){const[r,d]=e.useState({x:0,y:0}),[f,o]=e.useState(!1),p=e.useRef(null),[m,n]=e.useState(!1);e.useEffect(()=>(n(!0),()=>n(!1)),[]),e.useEffect(()=>{const u=i=>{d({x:i.clientX,y:i.clientY})};return window.addEventListener("mousemove",u),()=>window.removeEventListener("mousemove",u)},[]);const y=()=>{o(!0)},v=()=>{o(!1)},h=t.jsx("div",{ref:p,className:q.cn(s.default.cursor,{[s.default.cursorVisible]:f}),style:{left:`${r.x}px`,top:`${r.y}px`},"data-color-scheme":l,children:t.jsx(b.Typography,{as:"p",emphasis:!0,defaultVariant:"labelLg",children:a})});return t.jsxs("div",{children:[t.jsx("div",{className:s.default.cursorContainer,onMouseEnter:y,onMouseLeave:v,children:c}),m&&x.createPortal(h,document.body)]})}exports.ClientCursor=g;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as e, jsxs as b
|
|
3
|
-
import { useState as o, useRef as
|
|
4
|
-
import { createPortal as
|
|
5
|
-
import { cn as
|
|
6
|
-
import { Typography as
|
|
7
|
-
import
|
|
8
|
-
function
|
|
9
|
-
const [
|
|
10
|
-
|
|
2
|
+
import { jsx as e, jsxs as b } from "react/jsx-runtime";
|
|
3
|
+
import { useState as o, useRef as E, useEffect as c } from "react";
|
|
4
|
+
import { createPortal as L } from "react-dom";
|
|
5
|
+
import { cn as M } from "../../../utils/cn/cn.es.js";
|
|
6
|
+
import { Typography as w } from "../../Typography/Typography.es.js";
|
|
7
|
+
import s from "../cursor.module.css.es.js";
|
|
8
|
+
function R({ children: l, label: a, colorScheme: m }) {
|
|
9
|
+
const [t, d] = o({ x: 0, y: 0 }), [f, r] = o(!1), p = E(null), [v, n] = o(!1);
|
|
10
|
+
c(() => (n(!0), () => n(!1)), []), c(() => {
|
|
11
11
|
const i = (u) => {
|
|
12
12
|
d({ x: u.clientX, y: u.clientY });
|
|
13
13
|
};
|
|
@@ -21,22 +21,22 @@ function $({ children: c, label: l, colorScheme: m }) {
|
|
|
21
21
|
"div",
|
|
22
22
|
{
|
|
23
23
|
ref: p,
|
|
24
|
-
className:
|
|
25
|
-
[
|
|
24
|
+
className: M(s.cursor, {
|
|
25
|
+
[s.cursorVisible]: f
|
|
26
26
|
}),
|
|
27
27
|
style: {
|
|
28
|
-
left: `${
|
|
29
|
-
top: `${
|
|
28
|
+
left: `${t.x}px`,
|
|
29
|
+
top: `${t.y}px`
|
|
30
30
|
},
|
|
31
31
|
"data-color-scheme": m,
|
|
32
|
-
children: /* @__PURE__ */ e(
|
|
32
|
+
children: /* @__PURE__ */ e(w, { as: "p", emphasis: !0, defaultVariant: "labelLg", children: a })
|
|
33
33
|
}
|
|
34
34
|
);
|
|
35
|
-
return /* @__PURE__ */ b(
|
|
36
|
-
/* @__PURE__ */ e("div", { className:
|
|
37
|
-
v &&
|
|
35
|
+
return /* @__PURE__ */ b("div", { children: [
|
|
36
|
+
/* @__PURE__ */ e("div", { className: s.cursorContainer, onMouseEnter: h, onMouseLeave: x, children: l }),
|
|
37
|
+
v && L(y, document.body)
|
|
38
38
|
] });
|
|
39
39
|
}
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
R as ClientCursor
|
|
42
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),a=require("../Typography/Typography.cjs.js"),r=require("../../utils/cn/cn.cjs.js"),e=require("./highlightedTitle.module.css.cjs.js"),h=({title:l,label:t,className:s,defaultVariant:d="displayMd",as:n="h2",mobileVariant:o="headingLg",colorScheme:c="light"})=>i.jsxs("div",{"data-scheme":c,className:r.cn(e.default.root,s),children:[t&&i.jsx(a.Typography,{as:"p",defaultVariant:"labelSm",emphasis:!0,className:e.default.tag,children:t}),i.jsx(a.Typography,{as:n,defaultVariant:d,mobileVariant:o,className:r.cn(e.default.title,{[e.default.taggedTitle]:!!t}),children:l})]});exports.HighlightedTitle=h;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { jsxs as p, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { Typography as i } from "../Typography/Typography.es.js";
|
|
3
|
-
import { cn as
|
|
4
|
-
import
|
|
3
|
+
import { cn as r } from "../../utils/cn/cn.es.js";
|
|
4
|
+
import t from "./highlightedTitle.module.css.es.js";
|
|
5
5
|
const y = ({
|
|
6
|
-
title:
|
|
7
|
-
label:
|
|
6
|
+
title: s,
|
|
7
|
+
label: e,
|
|
8
8
|
className: o,
|
|
9
9
|
defaultVariant: m = "displayMd",
|
|
10
|
-
as:
|
|
11
|
-
mobileVariant:
|
|
12
|
-
colorScheme:
|
|
13
|
-
}) => /* @__PURE__ */ p("div", { "data-scheme":
|
|
14
|
-
|
|
10
|
+
as: l = "h2",
|
|
11
|
+
mobileVariant: d = "headingLg",
|
|
12
|
+
colorScheme: h = "light"
|
|
13
|
+
}) => /* @__PURE__ */ p("div", { "data-scheme": h, className: r(t.root, o), children: [
|
|
14
|
+
e && /* @__PURE__ */ a(i, { as: "p", defaultVariant: "labelSm", emphasis: !0, className: t.tag, children: e }),
|
|
15
15
|
/* @__PURE__ */ a(
|
|
16
16
|
i,
|
|
17
17
|
{
|
|
18
|
-
as:
|
|
18
|
+
as: l,
|
|
19
19
|
defaultVariant: m,
|
|
20
|
-
mobileVariant:
|
|
21
|
-
className:
|
|
22
|
-
[
|
|
20
|
+
mobileVariant: d,
|
|
21
|
+
className: r(t.title, {
|
|
22
|
+
[t.taggedTitle]: !!e
|
|
23
23
|
}),
|
|
24
|
-
children:
|
|
24
|
+
children: s
|
|
25
25
|
}
|
|
26
26
|
)
|
|
27
27
|
] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),I=require("react"),e=require("./textInput.module.css.cjs.js"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),I=require("react"),e=require("./textInput.module.css.cjs.js"),c=require("../../utils/cn/cn.cjs.js"),V=require("../Button/Button.cjs.js"),B=require("../Icon/Icon.cjs.js"),F=require("../Icon/constants.cjs.js"),$=require("../Typography/Typography.cjs.js"),E=({placeholder:_,variant:o="primary",handleChange:r,handleKeyDown:l,disabled:i=!1,buttonText:h="SUBMIT",onButtonClick:s,error:u=!1,errorText:d,active:f=!1,value:p,label:m,type:j="button",showButton:N=!1})=>{const[q,y]=I.useState(!1),[v,T]=I.useState(""),x=typeof p=="string"&&typeof r=="function",a=x?p:v,g=n=>{x?r&&r(n):T(n.target.value)},b=()=>{s&&s(a||"")},S=n=>{n.key==="Enter"&&s&&s(a||""),l&&l(n)};return t.jsxs("div",{className:e.default.root,children:[m&&t.jsx("div",{className:c.cn(e.default.label,a&&e.default.hidden),children:m}),t.jsxs("div",{className:c.cn(e.default.container,e.default[o],{[e.default.focused]:q},{[e.default.disabled]:i},{[e.default.error]:u},{[e.default.active]:f}),children:[t.jsx("div",{className:e.default.input_container,children:t.jsx("input",{className:c.cn(e.default.input,e.default[`input_${o}`],{[e.default.error]:u},{[e.default.active]:f}),disabled:i,placeholder:_,onChange:g,onKeyDown:S,onFocus:()=>y(!0),onBlur:()=>y(!1),value:a,style:{outline:"none"}})}),N&&t.jsx("div",{className:e.default.button_container,children:t.jsx(V.Button,{variant:o==="primary"?"primary":"primary-invert",as:"button",size:"sm",type:j,onClick:b,children:h})})]}),u&&d&&t.jsxs("div",{className:e.default.errorTextContainer,children:[t.jsx(B.Icon,{name:F.EIconName.INFO,className:e.default.errorIcon}),t.jsx($.Typography,{defaultVariant:"labelSm",className:e.default.errorText,children:d})]})]})};exports.TextInput=E;
|
|
@@ -3,42 +3,42 @@ import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState as I } from "react";
|
|
4
4
|
import e from "./textInput.module.css.es.js";
|
|
5
5
|
import { cn as c } from "../../utils/cn/cn.es.js";
|
|
6
|
-
import { Button as
|
|
7
|
-
import { Icon as
|
|
8
|
-
import { EIconName as
|
|
9
|
-
import { Typography as
|
|
10
|
-
const
|
|
6
|
+
import { Button as E } from "../Button/Button.es.js";
|
|
7
|
+
import { Icon as w } from "../Icon/Icon.es.js";
|
|
8
|
+
import { EIconName as z } from "../Icon/constants.es.js";
|
|
9
|
+
import { Typography as B } from "../Typography/Typography.es.js";
|
|
10
|
+
const q = ({
|
|
11
11
|
placeholder: v,
|
|
12
12
|
variant: s = "primary",
|
|
13
13
|
handleChange: i,
|
|
14
14
|
handleKeyDown: m,
|
|
15
15
|
disabled: u = !1,
|
|
16
|
-
buttonText:
|
|
17
|
-
onButtonClick:
|
|
16
|
+
buttonText: x = "SUBMIT",
|
|
17
|
+
onButtonClick: r,
|
|
18
18
|
error: a = !1,
|
|
19
19
|
errorText: p,
|
|
20
20
|
active: f = !1,
|
|
21
21
|
value: d,
|
|
22
22
|
label: y,
|
|
23
|
-
type:
|
|
24
|
-
showButton:
|
|
23
|
+
type: b = "button",
|
|
24
|
+
showButton: T = !1
|
|
25
25
|
}) => {
|
|
26
|
-
const [
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
n.key === "Enter" &&
|
|
26
|
+
const [V, N] = I(!1), [g, F] = I(""), h = typeof d == "string" && typeof i == "function", o = h ? d : g, S = (n) => {
|
|
27
|
+
h ? i && i(n) : F(n.target.value);
|
|
28
|
+
}, _ = () => {
|
|
29
|
+
r && r(o || "");
|
|
30
|
+
}, j = (n) => {
|
|
31
|
+
n.key === "Enter" && r && r(o || ""), m && m(n);
|
|
32
32
|
};
|
|
33
33
|
return /* @__PURE__ */ l("div", { className: e.root, children: [
|
|
34
|
-
y && /* @__PURE__ */ t("div", { className: c(e.label,
|
|
34
|
+
y && /* @__PURE__ */ t("div", { className: c(e.label, o && e.hidden), children: y }),
|
|
35
35
|
/* @__PURE__ */ l(
|
|
36
36
|
"div",
|
|
37
37
|
{
|
|
38
38
|
className: c(
|
|
39
39
|
e.container,
|
|
40
40
|
e[s],
|
|
41
|
-
{ [e.focused]:
|
|
41
|
+
{ [e.focused]: V },
|
|
42
42
|
{ [e.disabled]: u },
|
|
43
43
|
{ [e.error]: a },
|
|
44
44
|
{ [e.active]: f }
|
|
@@ -55,34 +55,34 @@ const $ = ({
|
|
|
55
55
|
),
|
|
56
56
|
disabled: u,
|
|
57
57
|
placeholder: v,
|
|
58
|
-
onChange:
|
|
59
|
-
onKeyDown:
|
|
60
|
-
onFocus: () =>
|
|
61
|
-
onBlur: () =>
|
|
62
|
-
value:
|
|
58
|
+
onChange: S,
|
|
59
|
+
onKeyDown: j,
|
|
60
|
+
onFocus: () => N(!0),
|
|
61
|
+
onBlur: () => N(!1),
|
|
62
|
+
value: o,
|
|
63
63
|
style: { outline: "none" }
|
|
64
64
|
}
|
|
65
65
|
) }),
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
T && /* @__PURE__ */ t("div", { className: e.button_container, children: /* @__PURE__ */ t(
|
|
67
|
+
E,
|
|
68
68
|
{
|
|
69
69
|
variant: s === "primary" ? "primary" : "primary-invert",
|
|
70
70
|
as: "button",
|
|
71
71
|
size: "sm",
|
|
72
|
-
type:
|
|
73
|
-
onClick:
|
|
74
|
-
children:
|
|
72
|
+
type: b,
|
|
73
|
+
onClick: _,
|
|
74
|
+
children: x
|
|
75
75
|
}
|
|
76
76
|
) })
|
|
77
77
|
]
|
|
78
78
|
}
|
|
79
79
|
),
|
|
80
|
-
a && p && /* @__PURE__ */ l(
|
|
81
|
-
/* @__PURE__ */ t(
|
|
82
|
-
p
|
|
80
|
+
a && p && /* @__PURE__ */ l("div", { className: e.errorTextContainer, children: [
|
|
81
|
+
/* @__PURE__ */ t(w, { name: z.INFO, className: e.errorIcon }),
|
|
82
|
+
/* @__PURE__ */ t(B, { defaultVariant: "labelSm", className: e.errorText, children: p })
|
|
83
83
|
] })
|
|
84
84
|
] });
|
|
85
85
|
};
|
|
86
86
|
export {
|
|
87
|
-
|
|
87
|
+
q as TextInput
|
|
88
88
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="textInput-module__root___9OIkh",e="textInput-module__container___VFWsU",
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="textInput-module__root___9OIkh",e="textInput-module__container___VFWsU",r="textInput-module__primary___LR6zA",_="textInput-module__errorTextContainer___FDFNl",o="textInput-module__errorIcon___AEDWP",n="textInput-module__focused___VSXU0",u="textInput-module__active___7nRCI",i="textInput-module__error___MSPiu",d="textInput-module__disabled___Q659x",c="textInput-module__input_container___WJvjK",a="textInput-module__input___64sMa",l="textInput-module__errorText___BLzki",s="textInput-module__label___WVtXN",p="textInput-module__hidden___7s9pj",x={root:t,container:e,primary:r,"primary-invert":"textInput-module__primary-invert___6u0f5",errorTextContainer:_,errorIcon:o,focused:n,active:u,error:i,disabled:d,input_container:c,input:a,errorText:l,label:s,hidden:p};exports.active=u;exports.container=e;exports.default=x;exports.disabled=d;exports.error=i;exports.errorIcon=o;exports.errorText=l;exports.errorTextContainer=_;exports.focused=n;exports.hidden=p;exports.input=a;exports.input_container=c;exports.label=s;exports.primary=r;exports.root=t;
|
|
@@ -1,31 +1,33 @@
|
|
|
1
|
-
const t = "textInput-module__root___9OIkh", _ = "textInput-module__container___VFWsU", e = "textInput-module__primary___LR6zA", o = "textInput-
|
|
1
|
+
const t = "textInput-module__root___9OIkh", _ = "textInput-module__container___VFWsU", e = "textInput-module__primary___LR6zA", o = "textInput-module__errorTextContainer___FDFNl", n = "textInput-module__errorIcon___AEDWP", r = "textInput-module__focused___VSXU0", u = "textInput-module__active___7nRCI", i = "textInput-module__error___MSPiu", d = "textInput-module__disabled___Q659x", c = "textInput-module__input_container___WJvjK", p = "textInput-module__input___64sMa", l = "textInput-module__errorText___BLzki", s = "textInput-module__label___WVtXN", a = "textInput-module__hidden___7s9pj", x = {
|
|
2
2
|
root: t,
|
|
3
3
|
container: _,
|
|
4
4
|
primary: e,
|
|
5
5
|
"primary-invert": "textInput-module__primary-invert___6u0f5",
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
errorTextContainer: o,
|
|
7
|
+
errorIcon: n,
|
|
8
|
+
focused: r,
|
|
9
|
+
active: u,
|
|
10
|
+
error: i,
|
|
10
11
|
disabled: d,
|
|
11
|
-
input_container:
|
|
12
|
-
input:
|
|
13
|
-
errorText:
|
|
12
|
+
input_container: c,
|
|
13
|
+
input: p,
|
|
14
|
+
errorText: l,
|
|
14
15
|
label: s,
|
|
15
|
-
hidden:
|
|
16
|
+
hidden: a
|
|
16
17
|
};
|
|
17
18
|
export {
|
|
18
|
-
|
|
19
|
+
u as active,
|
|
19
20
|
_ as container,
|
|
20
|
-
|
|
21
|
+
x as default,
|
|
21
22
|
d as disabled,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
i as error,
|
|
24
|
+
n as errorIcon,
|
|
25
|
+
l as errorText,
|
|
26
|
+
o as errorTextContainer,
|
|
27
|
+
r as focused,
|
|
28
|
+
a as hidden,
|
|
29
|
+
p as input,
|
|
30
|
+
c as input_container,
|
|
29
31
|
s as label,
|
|
30
32
|
e as primary,
|
|
31
33
|
t as root
|