@zenpatient-org/healthspan-marketing-ui 0.1.66 → 0.1.69
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/Accordion/components/AccordionItem/AccordionItem.cjs.js +1 -1
- package/dist/components/Accordion/components/AccordionItem/AccordionItem.es.js +1 -0
- package/dist/components/AnchorLinks/AnchorLinks.cjs.js +1 -1
- package/dist/components/AnchorLinks/AnchorLinks.es.js +10 -9
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +16 -15
- package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.cjs.js +1 -1
- package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.es.js +13 -12
- package/dist/components/ContentTabs/ContentTabs.cjs.js +1 -1
- package/dist/components/ContentTabs/ContentTabs.es.js +21 -26
- package/dist/components/ContentTabs/contentTabs.module.css.cjs.js +1 -1
- package/dist/components/ContentTabs/contentTabs.module.css.es.js +18 -14
- package/dist/components/FAQComponentItem/FAQComponentItem.cjs.js +1 -1
- package/dist/components/FAQComponentItem/FAQComponentItem.es.js +7 -6
- package/dist/components/GalleryPagination/GalleryPagination.cjs.js +1 -1
- package/dist/components/GalleryPagination/GalleryPagination.es.js +1 -0
- package/dist/components/IconButton/IconButton.cjs.js +1 -1
- package/dist/components/IconButton/IconButton.es.js +5 -4
- package/dist/components/PlayButton/PlayButton.cjs.js +1 -1
- package/dist/components/PlayButton/PlayButton.es.js +4 -3
- package/dist/components/ProductGalleryCard/ProductGalleryCard.cjs.js +1 -1
- package/dist/components/ProductGalleryCard/ProductGalleryCard.es.js +1 -0
- package/dist/components/ProgramCard/ProgramCard.cjs.js +1 -1
- package/dist/components/ProgramCard/ProgramCard.es.js +22 -13
- package/dist/components/ProgramCard/programCard.module.css.cjs.js +1 -1
- package/dist/components/ProgramCard/programCard.module.css.es.js +8 -6
- package/dist/components/ProgressButton/ProgressButton.cjs.js +1 -1
- package/dist/components/ProgressButton/ProgressButton.es.js +6 -5
- package/dist/components/Tabs/Tabs.cjs.js +1 -1
- package/dist/components/Tabs/Tabs.es.js +1 -0
- package/dist/components/Tag/Tag.cjs.js +1 -1
- package/dist/components/Tag/Tag.es.js +8 -7
- package/dist/components/TextButton/TextButton.cjs.js +1 -1
- package/dist/components/TextButton/TextButton.es.js +13 -12
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +13 -12
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/TabsMenuItem.cjs.js +1 -1
- package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/TabsMenuItem.es.js +10 -9
- package/dist/modules/IndividualProductCard/components/PlanCard/PlanCard.cjs.js +1 -1
- package/dist/modules/IndividualProductCard/components/PlanCard/PlanCard.es.js +1 -0
- package/dist/modules/IngredientHighlight/IngredientHighlight.cjs.js +1 -1
- package/dist/modules/IngredientHighlight/IngredientHighlight.es.js +10 -9
- package/dist/modules/IngredientHighlight/components/Ingredient/Ingredient.cjs.js +1 -1
- package/dist/modules/IngredientHighlight/components/Ingredient/Ingredient.es.js +4 -3
- package/dist/modules/ResearchStudies/ResearchStudies.cjs.js +1 -1
- package/dist/modules/ResearchStudies/ResearchStudies.es.js +1 -0
- package/dist/modules/Testimonial/components/Product/Product.cjs.js +1 -1
- package/dist/modules/Testimonial/components/Product/Product.es.js +9 -8
- package/dist/pageComponents/Footer/Footer.cjs.js +1 -1
- package/dist/pageComponents/Footer/Footer.d.ts +2 -2
- package/dist/pageComponents/Footer/Footer.es.js +26 -26
- package/dist/pageComponents/Footer/components/LinksColumn/LinksColumn.cjs.js +1 -1
- package/dist/pageComponents/Footer/components/LinksColumn/LinksColumn.es.js +1 -0
- package/dist/pageComponents/Footer/components/NewsLetter/NewsLetter.cjs.js +1 -1
- package/dist/pageComponents/Footer/components/NewsLetter/NewsLetter.es.js +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("../../styles/typography.module.css.cjs.js"),m=require("../../utils/cn/cn.cjs.js"),d=require("../Icon/Icon.cjs.js"),t=require("./tag.module.css.cjs.js"),g={md:r.default.labelMd,lg:r.default.labelLg},j=({value:n,children:u,active:o,disabled:i,size:s="md",prefixIcon:c,suffixIcon:l,onClick:a})=>e.jsx("button",{className:m.cn(t.default.tag,g[s],{[t.default.active]:o},t.default[s]),disabled:i,onClick:()=>n&&(a==null?void 0:a(n)),children:e.jsxs("div",{className:t.default.content,children:[c&&e.jsx("div",{className:t.default.iconWrap,children:e.jsx(d.Icon,{name:c})}),e.jsx("p",{children:u}),l&&e.jsx("div",{className:t.default.iconWrap,children:e.jsx(d.Icon,{name:l})})]})});exports.Tag=j;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r, jsxs as p } from "react/jsx-runtime";
|
|
2
3
|
import c from "../../styles/typography.module.css.es.js";
|
|
3
4
|
import { cn as g } from "../../utils/cn/cn.es.js";
|
|
4
5
|
import { Icon as n } from "../Icon/Icon.es.js";
|
|
@@ -6,15 +7,15 @@ import m from "./tag.module.css.es.js";
|
|
|
6
7
|
const h = {
|
|
7
8
|
md: c.labelMd,
|
|
8
9
|
lg: c.labelLg
|
|
9
|
-
}, f = ({ value:
|
|
10
|
+
}, f = ({ value: a, children: l, active: d, disabled: i, size: e = "md", prefixIcon: o, suffixIcon: s, onClick: t }) => /* @__PURE__ */ r(
|
|
10
11
|
"button",
|
|
11
12
|
{
|
|
12
|
-
className: g(m.tag, h[e], { [m.active]:
|
|
13
|
-
disabled:
|
|
14
|
-
onClick: () =>
|
|
15
|
-
children: /* @__PURE__ */
|
|
13
|
+
className: g(m.tag, h[e], { [m.active]: d }, m[e]),
|
|
14
|
+
disabled: i,
|
|
15
|
+
onClick: () => a && (t == null ? void 0 : t(a)),
|
|
16
|
+
children: /* @__PURE__ */ p("div", { className: m.content, children: [
|
|
16
17
|
o && /* @__PURE__ */ r("div", { className: m.iconWrap, children: /* @__PURE__ */ r(n, { name: o }) }),
|
|
17
|
-
/* @__PURE__ */ r("p", { children:
|
|
18
|
+
/* @__PURE__ */ r("p", { children: l }),
|
|
18
19
|
s && /* @__PURE__ */ r("div", { className: m.iconWrap, children: /* @__PURE__ */ r(n, { name: s }) })
|
|
19
20
|
] })
|
|
20
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),f=require("../../utils/cn/cn.cjs.js"),c=require("../Icon/Icon.cjs.js"),t=require("./textButton.module.css.cjs.js"),v=({size:l="sm",as:o="button",disabled:s=!1,inverted:d=!1,children:
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),f=require("../../utils/cn/cn.cjs.js"),c=require("../Icon/Icon.cjs.js"),t=require("./textButton.module.css.cjs.js"),v=({size:l="sm",as:o="button",disabled:s=!1,inverted:d=!1,children:i,prefixIcon:n,suffixIcon:a,hideOn:r,...u})=>{const m=t.default[l]||"",j=d?t.default.inverted:"",x=s?t.default.disabled:"";return e.jsx(o,{...u,className:f.cn(t.default.button,j,m,x),disabled:s,"data-hide-on":r,children:e.jsxs("div",{className:t.default.content,children:[n&&e.jsx("div",{className:t.default.iconWrap,children:e.jsx(c.Icon,{name:n})}),e.jsx("div",{children:i}),a&&e.jsx("div",{className:t.default.iconWrap,children:e.jsx(c.Icon,{name:a})})]})})};exports.TextButton=v;
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as e, jsxs as u } from "react/jsx-runtime";
|
|
3
|
+
import { cn as N } from "../../utils/cn/cn.es.js";
|
|
3
4
|
import { Icon as o } from "../Icon/Icon.es.js";
|
|
4
5
|
import s from "./textButton.module.css.es.js";
|
|
5
6
|
const x = ({
|
|
6
|
-
size:
|
|
7
|
-
as:
|
|
7
|
+
size: i = "sm",
|
|
8
|
+
as: r = "button",
|
|
8
9
|
disabled: t = !1,
|
|
9
10
|
inverted: c = !1,
|
|
10
11
|
children: l,
|
|
11
|
-
prefixIcon:
|
|
12
|
-
suffixIcon:
|
|
12
|
+
prefixIcon: n,
|
|
13
|
+
suffixIcon: a,
|
|
13
14
|
hideOn: m,
|
|
14
15
|
...d
|
|
15
16
|
}) => {
|
|
16
|
-
const p = s[
|
|
17
|
+
const p = s[i] || "", v = c ? s.inverted : "", h = t ? s.disabled : "";
|
|
17
18
|
return /* @__PURE__ */ e(
|
|
18
|
-
|
|
19
|
+
r,
|
|
19
20
|
{
|
|
20
21
|
...d,
|
|
21
|
-
className:
|
|
22
|
+
className: N(s.button, v, p, h),
|
|
22
23
|
disabled: t,
|
|
23
24
|
"data-hide-on": m,
|
|
24
|
-
children: /* @__PURE__ */
|
|
25
|
-
|
|
25
|
+
children: /* @__PURE__ */ u("div", { className: s.content, children: [
|
|
26
|
+
n && /* @__PURE__ */ e("div", { className: s.iconWrap, children: /* @__PURE__ */ e(o, { name: n }) }),
|
|
26
27
|
/* @__PURE__ */ e("div", { children: l }),
|
|
27
|
-
|
|
28
|
+
a && /* @__PURE__ */ e("div", { className: s.iconWrap, children: /* @__PURE__ */ e(o, { name: a }) })
|
|
28
29
|
] })
|
|
29
30
|
}
|
|
30
31
|
);
|
|
@@ -1 +1 @@
|
|
|
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"),
|
|
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"),l=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:r,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||""),r&&r(n)};return t.jsxs("div",{className:e.default.root,children:[m&&t.jsx("div",{className:l.cn(e.default.label,a&&e.default.hidden),children:m}),t.jsxs("div",{className:l.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:l.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,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
3
|
import { useState as I } from "react";
|
|
3
4
|
import e from "./textInput.module.css.es.js";
|
|
@@ -9,21 +10,21 @@ import { Typography as z } from "../Typography/Typography.es.js";
|
|
|
9
10
|
const $ = ({
|
|
10
11
|
placeholder: v,
|
|
11
12
|
variant: s = "primary",
|
|
12
|
-
handleChange:
|
|
13
|
+
handleChange: i,
|
|
13
14
|
handleKeyDown: m,
|
|
14
|
-
disabled:
|
|
15
|
+
disabled: u = !1,
|
|
15
16
|
buttonText: b = "SUBMIT",
|
|
16
17
|
onButtonClick: o,
|
|
17
|
-
error:
|
|
18
|
-
errorText:
|
|
18
|
+
error: a = !1,
|
|
19
|
+
errorText: p,
|
|
19
20
|
active: f = !1,
|
|
20
21
|
value: d,
|
|
21
22
|
label: y,
|
|
22
23
|
type: x = "button",
|
|
23
24
|
showButton: E = !1
|
|
24
25
|
}) => {
|
|
25
|
-
const [R, h] = I(!1), [T, V] = I(""), N = typeof d == "string" && typeof
|
|
26
|
-
N ?
|
|
26
|
+
const [R, h] = I(!1), [T, V] = I(""), N = typeof d == "string" && typeof i == "function", r = N ? d : T, _ = (n) => {
|
|
27
|
+
N ? i && i(n) : V(n.target.value);
|
|
27
28
|
}, g = () => {
|
|
28
29
|
o && o(r || "");
|
|
29
30
|
}, S = (n) => {
|
|
@@ -38,8 +39,8 @@ const $ = ({
|
|
|
38
39
|
e.container,
|
|
39
40
|
e[s],
|
|
40
41
|
{ [e.focused]: R },
|
|
41
|
-
{ [e.disabled]:
|
|
42
|
-
{ [e.error]:
|
|
42
|
+
{ [e.disabled]: u },
|
|
43
|
+
{ [e.error]: a },
|
|
43
44
|
{ [e.active]: f }
|
|
44
45
|
),
|
|
45
46
|
children: [
|
|
@@ -49,10 +50,10 @@ const $ = ({
|
|
|
49
50
|
className: c(
|
|
50
51
|
e.input,
|
|
51
52
|
e[`input_${s}`],
|
|
52
|
-
{ [e.error]:
|
|
53
|
+
{ [e.error]: a },
|
|
53
54
|
{ [e.active]: f }
|
|
54
55
|
),
|
|
55
|
-
disabled:
|
|
56
|
+
disabled: u,
|
|
56
57
|
placeholder: v,
|
|
57
58
|
onChange: _,
|
|
58
59
|
onKeyDown: S,
|
|
@@ -76,9 +77,9 @@ const $ = ({
|
|
|
76
77
|
]
|
|
77
78
|
}
|
|
78
79
|
),
|
|
79
|
-
|
|
80
|
+
a && p && /* @__PURE__ */ l(z, { defaultVariant: "labelSm", className: e.errorText, children: [
|
|
80
81
|
/* @__PURE__ */ t(F, { name: w.ALERT_ERROR, className: e.errorIcon }),
|
|
81
|
-
|
|
82
|
+
p
|
|
82
83
|
] })
|
|
83
84
|
] });
|
|
84
85
|
};
|