@zenpatient-org/healthspan-marketing-ui 0.1.61 → 0.1.63
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/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +53 -52
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/pageComponents/Banner/Banner.cjs.js +1 -0
- package/dist/pageComponents/Banner/Banner.d.ts +11 -0
- package/dist/pageComponents/Banner/Banner.es.js +15 -0
- package/dist/pageComponents/Banner/banner.module.css.cjs.js +1 -0
- package/dist/pageComponents/Banner/banner.module.css.es.js +9 -0
- package/dist/pageComponents/Banner/index.d.ts +1 -0
- package/dist/pageComponents/Footer/Footer.cjs.js +1 -1
- package/dist/pageComponents/Footer/Footer.es.js +31 -47
- package/dist/pageComponents/Footer/components/FooterAbout/FooterAbout.cjs.js +1 -1
- package/dist/pageComponents/Footer/components/FooterAbout/FooterAbout.es.js +22 -18
- package/dist/pageComponents/Footer/components/FooterAbout/footerAbout.module.css.cjs.js +1 -1
- package/dist/pageComponents/Footer/components/FooterAbout/footerAbout.module.css.es.js +6 -4
- package/dist/pageComponents/Footer/components/NewsLetter/NewsLetter.cjs.js +1 -1
- package/dist/pageComponents/Footer/components/NewsLetter/NewsLetter.es.js +26 -26
- package/dist/pageComponents/Footer/components/TopTreatmentsSlider/TopTreatmentsSlider.cjs.js +1 -0
- package/dist/pageComponents/Footer/components/TopTreatmentsSlider/TopTreatmentsSlider.d.ts +12 -0
- package/dist/pageComponents/Footer/components/TopTreatmentsSlider/TopTreatmentsSlider.es.js +81 -0
- package/dist/pageComponents/Footer/components/TopTreatmentsSlider/index.d.ts +1 -0
- package/dist/pageComponents/Footer/components/TopTreatmentsSlider/topTreatmentsSlider.module.css.cjs.js +1 -0
- package/dist/pageComponents/Footer/components/TopTreatmentsSlider/topTreatmentsSlider.module.css.es.js +37 -0
- package/dist/pageComponents/Footer/components/index.d.ts +1 -0
- package/package.json +6 -1
- package/dist/pageComponents/Footer/components/TopTreatmentsCard/TopTreatmentsCard.cjs.js +0 -1
- package/dist/pageComponents/Footer/components/TopTreatmentsCard/TopTreatmentsCard.d.ts +0 -11
- package/dist/pageComponents/Footer/components/TopTreatmentsCard/TopTreatmentsCard.es.js +0 -47
- package/dist/pageComponents/Footer/components/TopTreatmentsCard/index.d.ts +0 -1
- package/dist/pageComponents/Footer/components/TopTreatmentsCard/topTreatmentsCard.module.css.cjs.js +0 -1
- package/dist/pageComponents/Footer/components/TopTreatmentsCard/topTreatmentsCard.module.css.es.js +0 -33
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),
|
|
1
|
+
"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"),r=require("../../utils/cn/cn.cjs.js"),R=require("../Button/Button.cjs.js"),E=require("../Icon/Icon.cjs.js"),V=require("../Icon/constants.cjs.js"),B=require("../Typography/Typography.cjs.js"),$=({placeholder:x,variant:o="primary",handleChange:u,handleKeyDown:l,disabled:i=!1,buttonText:h="SUBMIT",onButtonClick:s,error:c=!1,errorText:d,active:f=!1,value:p,label:m,type:j="button",showButton:q=!1})=>{const[N,y]=I.useState(!1),[v,T]=I.useState(""),_=typeof p=="string"&&typeof u=="function",a=_?p:v,g=n=>{_?u&&u(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:r.cn(e.default.label,a&&e.default.hidden),children:m}),t.jsxs("div",{className:r.cn(e.default.container,e.default[o],{[e.default.focused]:N},{[e.default.disabled]:i},{[e.default.error]:c},{[e.default.active]:f}),children:[t.jsx("div",{className:e.default.input_container,children:t.jsx("input",{className:r.cn(e.default.input,e.default[`input_${o}`],{[e.default.error]:c},{[e.default.active]:f}),disabled:i,placeholder:x,onChange:g,onKeyDown:S,onFocus:()=>y(!0),onBlur:()=>y(!1),value:a,style:{outline:"none"}})}),q&&t.jsx("div",{className:e.default.button_container,children:t.jsx(R.Button,{variant:o==="primary"?"primary":"primary-invert",as:"button",size:"sm",type:j,onClick:b,children:h})})]}),c&&d&&t.jsxs(B.Typography,{defaultVariant:"labelSm",className:e.default.errorText,children:[t.jsx(E.Icon,{name:V.EIconName.ALERT_ERROR,className:e.default.errorIcon}),d]})]})};exports.TextInput=$;
|
|
@@ -1,86 +1,87 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as I } from "react";
|
|
3
3
|
import e from "./textInput.module.css.es.js";
|
|
4
|
-
import { cn as
|
|
5
|
-
import { Button as
|
|
6
|
-
import { Icon as
|
|
4
|
+
import { cn as c } from "../../utils/cn/cn.es.js";
|
|
5
|
+
import { Button as j } from "../Button/Button.es.js";
|
|
6
|
+
import { Icon as F } from "../Icon/Icon.es.js";
|
|
7
7
|
import { EIconName as w } from "../Icon/constants.es.js";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
import { Typography as z } from "../Typography/Typography.es.js";
|
|
9
|
+
const $ = ({
|
|
10
|
+
placeholder: v,
|
|
11
|
+
variant: s = "primary",
|
|
12
|
+
handleChange: a,
|
|
12
13
|
handleKeyDown: m,
|
|
13
|
-
disabled:
|
|
14
|
-
buttonText:
|
|
15
|
-
onButtonClick:
|
|
16
|
-
error:
|
|
17
|
-
errorText:
|
|
18
|
-
active:
|
|
14
|
+
disabled: p = !1,
|
|
15
|
+
buttonText: b = "SUBMIT",
|
|
16
|
+
onButtonClick: o,
|
|
17
|
+
error: i = !1,
|
|
18
|
+
errorText: u,
|
|
19
|
+
active: f = !1,
|
|
19
20
|
value: d,
|
|
20
21
|
label: y,
|
|
21
|
-
type:
|
|
22
|
-
showButton:
|
|
22
|
+
type: x = "button",
|
|
23
|
+
showButton: E = !1
|
|
23
24
|
}) => {
|
|
24
|
-
const [
|
|
25
|
-
|
|
25
|
+
const [R, h] = I(!1), [T, V] = I(""), N = typeof d == "string" && typeof a == "function", r = N ? d : T, _ = (n) => {
|
|
26
|
+
N ? a && a(n) : V(n.target.value);
|
|
26
27
|
}, g = () => {
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
|
|
28
|
+
o && o(r || "");
|
|
29
|
+
}, S = (n) => {
|
|
30
|
+
n.key === "Enter" && o && o(r || ""), m && m(n);
|
|
30
31
|
};
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
-
y && /* @__PURE__ */
|
|
33
|
-
/* @__PURE__ */
|
|
32
|
+
return /* @__PURE__ */ l("div", { className: e.root, children: [
|
|
33
|
+
y && /* @__PURE__ */ t("div", { className: c(e.label, r && e.hidden), children: y }),
|
|
34
|
+
/* @__PURE__ */ l(
|
|
34
35
|
"div",
|
|
35
36
|
{
|
|
36
|
-
className:
|
|
37
|
+
className: c(
|
|
37
38
|
e.container,
|
|
38
|
-
e[
|
|
39
|
-
{ [e.focused]:
|
|
40
|
-
{ [e.disabled]:
|
|
41
|
-
{ [e.error]:
|
|
42
|
-
{ [e.active]:
|
|
39
|
+
e[s],
|
|
40
|
+
{ [e.focused]: R },
|
|
41
|
+
{ [e.disabled]: p },
|
|
42
|
+
{ [e.error]: i },
|
|
43
|
+
{ [e.active]: f }
|
|
43
44
|
),
|
|
44
45
|
children: [
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ t("div", { className: e.input_container, children: /* @__PURE__ */ t(
|
|
46
47
|
"input",
|
|
47
48
|
{
|
|
48
|
-
className:
|
|
49
|
+
className: c(
|
|
49
50
|
e.input,
|
|
50
|
-
e[`input_${
|
|
51
|
-
{ [e.error]:
|
|
52
|
-
{ [e.active]:
|
|
51
|
+
e[`input_${s}`],
|
|
52
|
+
{ [e.error]: i },
|
|
53
|
+
{ [e.active]: f }
|
|
53
54
|
),
|
|
54
|
-
disabled:
|
|
55
|
-
placeholder:
|
|
56
|
-
onChange:
|
|
57
|
-
onKeyDown:
|
|
58
|
-
onFocus: () =>
|
|
59
|
-
onBlur: () =>
|
|
60
|
-
value:
|
|
55
|
+
disabled: p,
|
|
56
|
+
placeholder: v,
|
|
57
|
+
onChange: _,
|
|
58
|
+
onKeyDown: S,
|
|
59
|
+
onFocus: () => h(!0),
|
|
60
|
+
onBlur: () => h(!1),
|
|
61
|
+
value: r,
|
|
61
62
|
style: { outline: "none" }
|
|
62
63
|
}
|
|
63
64
|
) }),
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
E && /* @__PURE__ */ t("div", { className: e.button_container, children: /* @__PURE__ */ t(
|
|
66
|
+
j,
|
|
66
67
|
{
|
|
67
|
-
variant:
|
|
68
|
+
variant: s === "primary" ? "primary" : "primary-invert",
|
|
68
69
|
as: "button",
|
|
69
70
|
size: "sm",
|
|
70
|
-
type:
|
|
71
|
+
type: x,
|
|
71
72
|
onClick: g,
|
|
72
|
-
children:
|
|
73
|
+
children: b
|
|
73
74
|
}
|
|
74
75
|
) })
|
|
75
76
|
]
|
|
76
77
|
}
|
|
77
78
|
),
|
|
78
|
-
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
|
|
79
|
+
i && u && /* @__PURE__ */ l(z, { defaultVariant: "labelSm", className: e.errorText, children: [
|
|
80
|
+
/* @__PURE__ */ t(F, { name: w.ALERT_ERROR, className: e.errorIcon }),
|
|
81
|
+
u
|
|
81
82
|
] })
|
|
82
83
|
] });
|
|
83
84
|
};
|
|
84
85
|
export {
|
|
85
|
-
|
|
86
|
+
$ as TextInput
|
|
86
87
|
};
|