@zenpatient-org/healthspan-marketing-ui 0.1.44 → 0.1.45
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/AnchorLinks/AnchorLinks.cjs.js +1 -1
- package/dist/components/AnchorLinks/AnchorLinks.es.js +14 -6
- package/dist/components/AnchorLinks/types.d.ts +4 -0
- package/dist/components/FAQComponent/FAQComponent.cjs.js +1 -1
- package/dist/components/FAQComponent/FAQComponent.es.js +1 -1
- package/dist/components/FAQComponent/components/index.d.ts +1 -1
- package/dist/components/FAQComponentItem/FAQComponentItem.cjs.js +1 -0
- package/dist/components/{FAQComponent/components/FAQComponentItem → FAQComponentItem}/FAQComponentItem.es.js +4 -4
- package/dist/components/FAQComponentItem/faqComponentItem.module.css.cjs.js +1 -0
- package/dist/components/FAQComponentItem/faqComponentItem.module.css.es.js +27 -0
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/modules/TextBlockAnimated/TextBlockAnimated.cjs.js +1 -0
- package/dist/modules/TextBlockAnimated/TextBlockAnimated.es.js +54 -0
- package/dist/modules/TextBlockAnimated/index.d.ts +1 -0
- package/dist/modules/TextBlockAnimated/textBlockAnimated.module.css.cjs.js +1 -0
- package/dist/modules/TextBlockAnimated/textBlockAnimated.module.css.es.js +21 -0
- package/dist/node_modules/gsap/SplitText.cjs.js +9 -0
- package/dist/node_modules/gsap/SplitText.es.js +148 -0
- package/package.json +11 -1
- package/dist/components/FAQComponent/components/FAQComponentItem/FAQComponentItem.cjs.js +0 -1
- package/dist/components/FAQComponent/components/FAQComponentItem/faqComponentItem.module.css.cjs.js +0 -1
- package/dist/components/FAQComponent/components/FAQComponentItem/faqComponentItem.module.css.es.js +0 -27
- /package/dist/components/{FAQComponent/components/FAQComponentItem → FAQComponentItem}/FAQComponentItem.d.ts +0 -0
- /package/dist/components/{FAQComponent/components/FAQComponentItem → FAQComponentItem}/index.d.ts +0 -0
- /package/dist/components/{FAQComponent/components/FAQComponentItem → FAQComponentItem}/types.d.ts +0 -0
|
@@ -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"),d=require("../Typography/Typography.cjs.js"),p=require("../../utils/cn/cn.cjs.js"),e=require("./anchorLinks.module.css.cjs.js"),h=({links:n,activeId:s,onClick:r})=>t.jsx("div",{className:e.default.root,children:n.map(({label:c,id:a,href:l,type:o,variant:u,emphasis:i})=>t.jsx("a",{className:p.cn(e.default.linkButton,{[e.default.active]:s===a}),href:l,"data-type":o,onClick:()=>r==null?void 0:r(a),children:t.jsx(d.Typography,{className:e.default.linkLabel,defaultVariant:u||"labelLg",emphasis:i??!0,children:c})},a))});exports.AnchorLinks=h;
|
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { Typography as
|
|
3
|
-
import { cn as
|
|
2
|
+
import { Typography as c } from "../Typography/Typography.es.js";
|
|
3
|
+
import { cn as h } from "../../utils/cn/cn.es.js";
|
|
4
4
|
import r from "./anchorLinks.module.css.es.js";
|
|
5
|
-
const
|
|
5
|
+
const L = ({ links: m, activeId: s, onClick: a }) => /* @__PURE__ */ e("div", { className: r.root, children: m.map(({ label: o, id: t, href: l, type: p, variant: i, emphasis: n }) => /* @__PURE__ */ e(
|
|
6
6
|
"a",
|
|
7
7
|
{
|
|
8
|
-
className:
|
|
8
|
+
className: h(r.linkButton, {
|
|
9
9
|
[r.active]: s === t
|
|
10
10
|
}),
|
|
11
11
|
href: l,
|
|
12
12
|
"data-type": p,
|
|
13
13
|
onClick: () => a == null ? void 0 : a(t),
|
|
14
|
-
children: /* @__PURE__ */ e(
|
|
14
|
+
children: /* @__PURE__ */ e(
|
|
15
|
+
c,
|
|
16
|
+
{
|
|
17
|
+
className: r.linkLabel,
|
|
18
|
+
defaultVariant: i || "labelLg",
|
|
19
|
+
emphasis: n ?? !0,
|
|
20
|
+
children: o
|
|
21
|
+
}
|
|
22
|
+
)
|
|
15
23
|
},
|
|
16
24
|
t
|
|
17
25
|
)) });
|
|
18
26
|
export {
|
|
19
|
-
|
|
27
|
+
L as AnchorLinks
|
|
20
28
|
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { TypographyVariant } from '../Typography';
|
|
2
|
+
|
|
1
3
|
export declare enum EAnchorLinksTypes {
|
|
2
4
|
ENERGY = "energy",
|
|
3
5
|
SENESCENCE = "senescence",
|
|
@@ -9,6 +11,8 @@ export type TAnchorLink = {
|
|
|
9
11
|
id: string;
|
|
10
12
|
href: string;
|
|
11
13
|
type: EAnchorLinksTypes;
|
|
14
|
+
variant?: TypographyVariant;
|
|
15
|
+
emphasis?: boolean;
|
|
12
16
|
};
|
|
13
17
|
export type TAnchorLinksProps = {
|
|
14
18
|
links: TAnchorLink[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),l=require("react"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),l=require("react"),C=require("../FAQComponentItem/FAQComponentItem.cjs.js"),S=require("./faqComponent.module.css.cjs.js"),g=({items:c,mode:o="multiple",initialActiveIndex:r})=>{const[u,m]=l.useState(r??null),[i,a]=l.useState(new Set),p=e=>{o==="single"?m(t=>t===e?null:e):a(t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},I=e=>o==="single"?u===e:i.has(e);return s.jsx("div",{className:S.default.root,children:c.map((e,t)=>s.jsx(C.FAQComponentItem,{title:e.title,content:e.content,isOpen:I(t),index:t,onClick:p},t))})};exports.FAQComponent=g;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as s } from "react/jsx-runtime";
|
|
3
3
|
import { useState as l } from "react";
|
|
4
|
-
import { FAQComponentItem as I } from "
|
|
4
|
+
import { FAQComponentItem as I } from "../FAQComponentItem/FAQComponentItem.es.js";
|
|
5
5
|
import g from "./faqComponent.module.css.es.js";
|
|
6
6
|
const A = ({ items: m, mode: o = "multiple", initialActiveIndex: r }) => {
|
|
7
7
|
const [c, p] = l(r ?? null), [i, a] = l(/* @__PURE__ */ new Set()), u = (t) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { FAQComponentItem, type TFAQComponentItem } from '
|
|
1
|
+
export { FAQComponentItem, type TFAQComponentItem } from '../../FAQComponentItem';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("../Typography/Typography.cjs.js"),o=require("../Icon/Icon.cjs.js"),t=require("../Icon/constants.cjs.js"),s=require("../../utils/cn/cn.cjs.js"),n=require("./faqComponentItem.module.css.cjs.js"),u=({title:r,content:d,isOpen:a,index:i,onClick:l})=>e.jsxs("div",{className:n.default.root,children:[e.jsxs("div",{onClick:()=>l(i??0),className:s.cn(n.default.header,{[n.default.headerSticky]:a}),children:[e.jsx(c.Typography,{defaultVariant:"headingMd",mobileVariant:"headingXxs",children:r}),e.jsxs("div",{className:n.default.closeButtonWrapper,children:[e.jsx(o.Icon,{name:t.EIconName.BRACKET_LEFT}),e.jsx("div",{className:s.cn(n.default.closeButton,{[n.default.closeButtonActive]:a}),children:e.jsx(o.Icon,{name:t.EIconName.PLUS_BOLD})}),e.jsx(o.Icon,{name:t.EIconName.BRACKET_RIGHT})]})]}),e.jsx("div",{className:s.cn(n.default.description,{[n.default.descriptionShow]:a}),children:e.jsx("div",{className:n.default.descriptionInner,children:e.jsx(c.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodyXs",children:d})})}),e.jsx("div",{className:n.default.leftBorder}),e.jsx("div",{className:n.default.rightBorder})]});exports.FAQComponentItem=u;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { Typography as n } from "
|
|
3
|
-
import { Icon as a } from "
|
|
4
|
-
import { EIconName as t } from "
|
|
5
|
-
import { cn as d } from "
|
|
2
|
+
import { Typography as n } from "../Typography/Typography.es.js";
|
|
3
|
+
import { Icon as a } from "../Icon/Icon.es.js";
|
|
4
|
+
import { EIconName as t } from "../Icon/constants.es.js";
|
|
5
|
+
import { cn as d } from "../../utils/cn/cn.es.js";
|
|
6
6
|
import e from "./faqComponentItem.module.css.es.js";
|
|
7
7
|
const u = ({ title: c, content: s, isOpen: i, index: m, onClick: l }) => /* @__PURE__ */ o("div", { className: e.root, children: [
|
|
8
8
|
/* @__PURE__ */ o("div", { onClick: () => l(m ?? 0), className: d(e.header, { [e.headerSticky]: i }), children: [
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="faqComponentItem-module__root___qscxM",o="faqComponentItem-module__header___dmHbo",t="faqComponentItem-module__closeButtonWrapper___FcDO8",n="faqComponentItem-module__closeButton___Va-zE",r="faqComponentItem-module__closeButtonActive___T7tO4",_="faqComponentItem-module__description___V8Qa3",c="faqComponentItem-module__descriptionInner___a-wWW",d="faqComponentItem-module__descriptionShow___nR-X1",s="faqComponentItem-module__leftBorder___lWokl",i="faqComponentItem-module__rightBorder___TGNNR",l="faqComponentItem-module__headerSticky___eQzFQ",m={root:e,header:o,closeButtonWrapper:t,closeButton:n,closeButtonActive:r,description:_,descriptionInner:c,descriptionShow:d,leftBorder:s,rightBorder:i,headerSticky:l};exports.closeButton=n;exports.closeButtonActive=r;exports.closeButtonWrapper=t;exports.default=m;exports.description=_;exports.descriptionInner=c;exports.descriptionShow=d;exports.header=o;exports.headerSticky=l;exports.leftBorder=s;exports.rightBorder=i;exports.root=e;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const o = "faqComponentItem-module__root___qscxM", e = "faqComponentItem-module__header___dmHbo", t = "faqComponentItem-module__closeButtonWrapper___FcDO8", n = "faqComponentItem-module__closeButton___Va-zE", _ = "faqComponentItem-module__closeButtonActive___T7tO4", r = "faqComponentItem-module__description___V8Qa3", c = "faqComponentItem-module__descriptionInner___a-wWW", d = "faqComponentItem-module__descriptionShow___nR-X1", m = "faqComponentItem-module__leftBorder___lWokl", s = "faqComponentItem-module__rightBorder___TGNNR", i = "faqComponentItem-module__headerSticky___eQzFQ", l = {
|
|
2
|
+
root: o,
|
|
3
|
+
header: e,
|
|
4
|
+
closeButtonWrapper: t,
|
|
5
|
+
closeButton: n,
|
|
6
|
+
closeButtonActive: _,
|
|
7
|
+
description: r,
|
|
8
|
+
descriptionInner: c,
|
|
9
|
+
descriptionShow: d,
|
|
10
|
+
leftBorder: m,
|
|
11
|
+
rightBorder: s,
|
|
12
|
+
headerSticky: i
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
n as closeButton,
|
|
16
|
+
_ as closeButtonActive,
|
|
17
|
+
t as closeButtonWrapper,
|
|
18
|
+
l as default,
|
|
19
|
+
r as description,
|
|
20
|
+
c as descriptionInner,
|
|
21
|
+
d as descriptionShow,
|
|
22
|
+
e as header,
|
|
23
|
+
i as headerSticky,
|
|
24
|
+
m as leftBorder,
|
|
25
|
+
s as rightBorder,
|
|
26
|
+
o as root
|
|
27
|
+
};
|