@zenpatient-org/healthspan-marketing-ui 0.2.30 → 0.2.31

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,6 +1,6 @@
1
1
  .root {
2
2
  width: 100%;
3
- padding: 16px 120px 48px 120px;
3
+ padding: 48px 10vw;
4
4
  max-width: var(--content-max-width);
5
5
  margin: 0 auto;
6
6
  }
@@ -8,6 +8,7 @@
8
8
  .text {
9
9
  width: 100%;
10
10
  color: var(--color-text-secondary);
11
+ padding-bottom: 4px;
11
12
  }
12
13
 
13
14
  .text sup {
@@ -17,7 +18,7 @@
17
18
  }
18
19
 
19
20
  @media (width <= 768px) {
20
- .text {
21
- padding: 24px;
21
+ .root {
22
+ padding: 48px 6vw;
22
23
  }
23
24
  }
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),y=require("react"),g=require("../../types/analytics/analytics.cjs.js"),f=require("../../utils/useIsMobile.cjs.js"),N=require("../Comparison/assets/company-logo.svg.cjs.js"),q=require("../Comparison/utils.cjs.js"),i=require("../../src/modules/ComparisonV2/comparisonV2.module.css"),T=require("../../utils/cn/cn.cjs.js"),_=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),c=require("../../components/Typography/Typography.cjs.js"),H=require("./components/ComparisonV2Tooltip/ComparisonV2Tooltip.cjs.js"),M=require("./components/ComparisonV2Description/ComparisonV2Description.cjs.js"),B=require("../../components/Button/Button.cjs.js"),E=({title:C,description:u,ctaBlock:m,getStartedLink:d,comparisonV2Columns:j})=>{const[t,r]=y.useState(null),[p,a]=y.useState(null),x=f.useIsMobile(768),b=s=>{var n;(n=window.eventBus)==null||n.emit("analytics",{event:g.EAnalyticsEvent.ctaClicked,type:g.EAnalyticsEventType.interaction,component:"Comparison V2",payload:{link:d}})},V=s=>{x&&(t===s?(a(s),setTimeout(()=>{r(null),a(null)},250)):t?(a(t),setTimeout(()=>{a(null),r(s)},250)):r(s))},v=s=>{s==null||s.stopPropagation(),t&&(a(t),setTimeout(()=>{r(null),a(null)},250))};return e.jsx("div",{className:i.root,children:e.jsxs("div",{className:i.container,children:[e.jsxs("div",{className:i.header,children:[e.jsx(_.HighlightedTitle,{title:C,defaultVariant:"displayMd",mobileVariant:"headingXl"}),u&&e.jsx(c.Typography,{as:"p",defaultVariant:"bodyLg",mobileVariant:"bodySm",className:i.description,children:u})]}),e.jsxs("div",{className:i.tableContainer,children:[e.jsx("div",{className:i.table,children:j.map((s,n)=>e.jsxs("div",{className:T.cn(i.alternativeCol,{[i.featuredCol]:s.featured}),children:[e.jsx("div",{className:T.cn(i.alternativeHeaderCell,{[i.featuredHeaderCell]:s.featured}),children:q.isHealthspan(s.comparisonV2Header.type)?e.jsx(N.default,{className:i.logo,"aria-label":"Healthspan logo"}):e.jsx(c.Typography,{as:"h3",defaultVariant:"headingLg",mobileVariant:"preambleMd",className:i.headerText,children:s.comparisonV2Header.title})}),s.comparisonV2Cells.map((l,h)=>{const o=`comparison-${n}-${h}`;return e.jsxs("div",{className:i.alternativeContent,onClick:()=>V(o),children:[(t===o||p===o)&&e.jsx(H.ComparisonV2Tooltip,{title:l.title,description:l.description||"",onClose:v,isOpening:t===o&&!p,isClosing:p===o}),e.jsx(c.Typography,{as:"p",defaultVariant:"preambleMd",mobileVariant:"bodyXl",className:i.alternativeTitle,children:l.title}),l.description&&e.jsx(M.ComparisonV2Description,{title:l.title,description:l.description})]},h)})]},n))}),m&&d&&e.jsx("div",{className:i.ctaContainer,children:e.jsxs("div",{className:i.ctaBlock,children:[e.jsx(c.Typography,{as:"p",defaultVariant:"preambleMd",mobileVariant:"bodyXl",className:i.ctaText,children:m}),e.jsx("div",{className:i.ctaButton,children:e.jsx(B.Button,{as:"a",href:d||"#",size:"lg",onClick:b,children:"Get started"})})]})})]})]})})};exports.ComparisonV2=E;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),T=require("react"),g=require("../../types/analytics/analytics.cjs.js"),V=require("../../utils/useIsMobile.cjs.js"),f=require("../Comparison/assets/company-logo.svg.cjs.js"),q=require("../Comparison/utils.cjs.js"),e=require("../../src/modules/ComparisonV2/comparisonV2.module.css"),r=require("../../utils/cn/cn.cjs.js"),_=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),c=require("../../components/Typography/Typography.cjs.js"),M=require("./components/ComparisonV2Tooltip/ComparisonV2Tooltip.cjs.js"),H=require("../../components/Icon/Icon.cjs.js"),B=require("../../components/Icon/constants.cjs.js"),D=require("../../components/Button/Button.cjs.js"),E=({title:j,description:u,ctaBlock:h,getStartedLink:p,comparisonV2Columns:x})=>{const[t,d]=T.useState(null),[m,n]=T.useState(null),b=V.useIsMobile(768),C=a=>{var l;(l=window.eventBus)==null||l.emit("analytics",{event:g.EAnalyticsEvent.ctaClicked,type:g.EAnalyticsEventType.interaction,component:"Comparison V2",payload:{link:p}})},N=a=>{b&&(t===a?(n(a),setTimeout(()=>{d(null),n(null)},250)):t?(n(t),setTimeout(()=>{n(null),d(a)},250)):d(a))},v=a=>{a==null||a.stopPropagation(),t&&(n(t),setTimeout(()=>{d(null),n(null)},250))};return s.jsx("div",{className:e.root,children:s.jsxs("div",{className:e.container,children:[s.jsxs("div",{className:e.header,children:[s.jsx(_.HighlightedTitle,{title:j,defaultVariant:"displayMd",mobileVariant:"headingXl",className:e.title}),u&&s.jsx(c.Typography,{as:"p",defaultVariant:"bodyLg",mobileVariant:"bodySm",className:e.description,children:u})]}),s.jsxs("div",{className:e.tableContainer,children:[s.jsx("div",{className:e.table,children:x.map((a,l)=>s.jsxs("div",{className:r.cn(e.alternativeCol,{[e.featuredCol]:a.featured}),children:[s.jsx("div",{className:r.cn(e.alternativeHeaderCell,{[e.featuredHeaderCell]:a.featured}),children:q.isHealthspan(a.comparisonV2Header.type)?s.jsx(f.default,{className:e.logo,"aria-label":"Healthspan logo"}):s.jsx(c.Typography,{as:"h3",defaultVariant:"headingLg",mobileVariant:"preambleMd",className:e.headerText,children:a.comparisonV2Header.title})}),a.comparisonV2Cells.map((o,y)=>{const i=`comparison-${l}-${y}`;return s.jsxs("div",{className:e.alternativeContent,onClick:()=>N(i),children:[(t===i||m===i)&&s.jsx(M.ComparisonV2Tooltip,{title:o.title,description:o.description||"",onClose:v,isOpening:t===i&&!m,isClosing:m===i}),s.jsx(c.Typography,{as:"p",defaultVariant:"preambleMd",mobileVariant:"bodyXl",className:r.cn(e.alternativeTitle,{[e.activeTitle]:t===i}),children:o.title}),o.description&&s.jsxs("div",{className:e.rowDescriptionContainer,children:[s.jsx(c.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",className:r.cn(e.featuredDescription,e.hideMobile),children:o.description}),s.jsx(H.Icon,{name:B.EIconName.DOT,className:r.cn(e.dot,e.hideDesktop,{[e.activeDot]:t===i})})]})]},y)})]},l))}),h&&p&&s.jsx("div",{className:e.ctaContainer,children:s.jsxs("div",{className:e.ctaBlock,children:[s.jsx(c.Typography,{as:"p",defaultVariant:"preambleMd",className:e.ctaText,children:h}),s.jsx("div",{className:e.ctaButton,children:s.jsx(D.Button,{as:"a",href:p||"#",size:"lg",onClick:C,children:"Get started"})})]})})]})]})})};exports.ComparisonV2=E;
@@ -1,145 +1,161 @@
1
1
  "use client";
2
- import { jsx as a, jsxs as n } from "react/jsx-runtime";
3
- import { useState as C } from "react";
4
- import { EAnalyticsEventType as H, EAnalyticsEvent as M } from "../../types/analytics/analytics.es.js";
5
- import { useIsMobile as B } from "../../utils/useIsMobile.es.js";
2
+ import { jsx as i, jsxs as o } from "react/jsx-runtime";
3
+ import { useState as N } from "react";
4
+ import { EAnalyticsEventType as M, EAnalyticsEvent as H } from "../../types/analytics/analytics.es.js";
5
+ import { useIsMobile as D } from "../../utils/useIsMobile.es.js";
6
6
  import E from "../Comparison/assets/company-logo.svg.es.js";
7
7
  import { isHealthspan as k } from "../Comparison/utils.es.js";
8
8
  import e from "../../modules/ComparisonV2/comparisonV2.module.css";
9
- import { cn as b } from "../../utils/cn/cn.es.js";
10
- import { HighlightedTitle as x } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
11
- import { Typography as c } from "../../components/Typography/Typography.es.js";
12
- import { ComparisonV2Tooltip as X } from "./components/ComparisonV2Tooltip/ComparisonV2Tooltip.es.js";
13
- import { ComparisonV2Description as j } from "./components/ComparisonV2Description/ComparisonV2Description.es.js";
9
+ import { cn as c } from "../../utils/cn/cn.es.js";
10
+ import { HighlightedTitle as B } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
11
+ import { Typography as m } from "../../components/Typography/Typography.es.js";
12
+ import { ComparisonV2Tooltip as x } from "./components/ComparisonV2Tooltip/ComparisonV2Tooltip.es.js";
13
+ import { Icon as O } from "../../components/Icon/Icon.es.js";
14
+ import { EIconName as j } from "../../components/Icon/constants.es.js";
14
15
  import { Button as A } from "../../components/Button/Button.es.js";
15
- const R = ({
16
- title: g,
17
- description: h,
18
- ctaBlock: f,
19
- getStartedLink: d,
20
- comparisonV2Columns: v
16
+ const U = ({
17
+ title: v,
18
+ description: f,
19
+ ctaBlock: u,
20
+ getStartedLink: p,
21
+ comparisonV2Columns: b
21
22
  }) => {
22
- const [t, m] = C(null), [p, l] = C(null), T = B(768), V = (i) => {
23
- var s;
24
- (s = window.eventBus) == null || s.emit("analytics", {
25
- event: M.ctaClicked,
26
- type: H.interaction,
23
+ const [t, d] = N(null), [h, s] = N(null), T = D(768), g = (a) => {
24
+ var n;
25
+ (n = window.eventBus) == null || n.emit("analytics", {
26
+ event: H.ctaClicked,
27
+ type: M.interaction,
27
28
  component: "Comparison V2",
28
29
  payload: {
29
- link: d
30
+ link: p
30
31
  }
31
32
  });
32
- }, y = (i) => {
33
- T && (t === i ? (l(i), setTimeout(() => {
34
- m(null), l(null);
35
- }, 250)) : t ? (l(t), setTimeout(() => {
36
- l(null), m(i);
37
- }, 250)) : m(i));
38
- }, N = (i) => {
39
- i == null || i.stopPropagation(), t && (l(t), setTimeout(() => {
40
- m(null), l(null);
33
+ }, y = (a) => {
34
+ T && (t === a ? (s(a), setTimeout(() => {
35
+ d(null), s(null);
36
+ }, 250)) : t ? (s(t), setTimeout(() => {
37
+ s(null), d(a);
38
+ }, 250)) : d(a));
39
+ }, V = (a) => {
40
+ a == null || a.stopPropagation(), t && (s(t), setTimeout(() => {
41
+ d(null), s(null);
41
42
  }, 250));
42
43
  };
43
- return /* @__PURE__ */ a("div", { className: e.root, children: /* @__PURE__ */ n("div", { className: e.container, children: [
44
- /* @__PURE__ */ n("div", { className: e.header, children: [
45
- /* @__PURE__ */ a(x, { title: g, defaultVariant: "displayMd", mobileVariant: "headingXl" }),
46
- h && /* @__PURE__ */ a(
47
- c,
44
+ return /* @__PURE__ */ i("div", { className: e.root, children: /* @__PURE__ */ o("div", { className: e.container, children: [
45
+ /* @__PURE__ */ o("div", { className: e.header, children: [
46
+ /* @__PURE__ */ i(
47
+ B,
48
+ {
49
+ title: v,
50
+ defaultVariant: "displayMd",
51
+ mobileVariant: "headingXl",
52
+ className: e.title
53
+ }
54
+ ),
55
+ f && /* @__PURE__ */ i(
56
+ m,
48
57
  {
49
58
  as: "p",
50
59
  defaultVariant: "bodyLg",
51
60
  mobileVariant: "bodySm",
52
61
  className: e.description,
53
- children: h
62
+ children: f
54
63
  }
55
64
  )
56
65
  ] }),
57
- /* @__PURE__ */ n("div", { className: e.tableContainer, children: [
58
- /* @__PURE__ */ a("div", { className: e.table, children: v.map((i, s) => /* @__PURE__ */ n(
66
+ /* @__PURE__ */ o("div", { className: e.tableContainer, children: [
67
+ /* @__PURE__ */ i("div", { className: e.table, children: b.map((a, n) => /* @__PURE__ */ o(
59
68
  "div",
60
69
  {
61
- className: b(e.alternativeCol, {
62
- [e.featuredCol]: i.featured
70
+ className: c(e.alternativeCol, {
71
+ [e.featuredCol]: a.featured
63
72
  }),
64
73
  children: [
65
- /* @__PURE__ */ a(
74
+ /* @__PURE__ */ i(
66
75
  "div",
67
76
  {
68
- className: b(e.alternativeHeaderCell, {
69
- [e.featuredHeaderCell]: i.featured
77
+ className: c(e.alternativeHeaderCell, {
78
+ [e.featuredHeaderCell]: a.featured
70
79
  }),
71
- children: k(i.comparisonV2Header.type) ? /* @__PURE__ */ a(E, { className: e.logo, "aria-label": "Healthspan logo" }) : /* @__PURE__ */ a(
72
- c,
80
+ children: k(a.comparisonV2Header.type) ? /* @__PURE__ */ i(E, { className: e.logo, "aria-label": "Healthspan logo" }) : /* @__PURE__ */ i(
81
+ m,
73
82
  {
74
83
  as: "h3",
75
84
  defaultVariant: "headingLg",
76
85
  mobileVariant: "preambleMd",
77
86
  className: e.headerText,
78
- children: i.comparisonV2Header.title
87
+ children: a.comparisonV2Header.title
79
88
  }
80
89
  )
81
90
  }
82
91
  ),
83
- i.comparisonV2Cells.map((o, u) => {
84
- const r = `comparison-${s}-${u}`;
85
- return /* @__PURE__ */ n(
92
+ a.comparisonV2Cells.map((r, C) => {
93
+ const l = `comparison-${n}-${C}`;
94
+ return /* @__PURE__ */ o(
86
95
  "div",
87
96
  {
88
97
  className: e.alternativeContent,
89
- onClick: () => y(r),
98
+ onClick: () => y(l),
90
99
  children: [
91
- (t === r || p === r) && /* @__PURE__ */ a(
92
- X,
100
+ (t === l || h === l) && /* @__PURE__ */ i(
101
+ x,
93
102
  {
94
- title: o.title,
95
- description: o.description || "",
96
- onClose: N,
97
- isOpening: t === r && !p,
98
- isClosing: p === r
103
+ title: r.title,
104
+ description: r.description || "",
105
+ onClose: V,
106
+ isOpening: t === l && !h,
107
+ isClosing: h === l
99
108
  }
100
109
  ),
101
- /* @__PURE__ */ a(
102
- c,
110
+ /* @__PURE__ */ i(
111
+ m,
103
112
  {
104
113
  as: "p",
105
114
  defaultVariant: "preambleMd",
106
115
  mobileVariant: "bodyXl",
107
- className: e.alternativeTitle,
108
- children: o.title
116
+ className: c(e.alternativeTitle, {
117
+ [e.activeTitle]: t === l
118
+ }),
119
+ children: r.title
109
120
  }
110
121
  ),
111
- o.description && /* @__PURE__ */ a(
112
- j,
113
- {
114
- title: o.title,
115
- description: o.description
116
- }
117
- )
122
+ r.description && /* @__PURE__ */ o("div", { className: e.rowDescriptionContainer, children: [
123
+ /* @__PURE__ */ i(
124
+ m,
125
+ {
126
+ as: "p",
127
+ defaultVariant: "bodyMd",
128
+ mobileVariant: "bodySm",
129
+ className: c(e.featuredDescription, e.hideMobile),
130
+ children: r.description
131
+ }
132
+ ),
133
+ /* @__PURE__ */ i(
134
+ O,
135
+ {
136
+ name: j.DOT,
137
+ className: c(e.dot, e.hideDesktop, {
138
+ [e.activeDot]: t === l
139
+ })
140
+ }
141
+ )
142
+ ] })
118
143
  ]
119
144
  },
120
- u
145
+ C
121
146
  );
122
147
  })
123
148
  ]
124
149
  },
125
- s
150
+ n
126
151
  )) }),
127
- f && d && /* @__PURE__ */ a("div", { className: e.ctaContainer, children: /* @__PURE__ */ n("div", { className: e.ctaBlock, children: [
128
- /* @__PURE__ */ a(
129
- c,
130
- {
131
- as: "p",
132
- defaultVariant: "preambleMd",
133
- mobileVariant: "bodyXl",
134
- className: e.ctaText,
135
- children: f
136
- }
137
- ),
138
- /* @__PURE__ */ a("div", { className: e.ctaButton, children: /* @__PURE__ */ a(A, { as: "a", href: d || "#", size: "lg", onClick: V, children: "Get started" }) })
152
+ u && p && /* @__PURE__ */ i("div", { className: e.ctaContainer, children: /* @__PURE__ */ o("div", { className: e.ctaBlock, children: [
153
+ /* @__PURE__ */ i(m, { as: "p", defaultVariant: "preambleMd", className: e.ctaText, children: u }),
154
+ /* @__PURE__ */ i("div", { className: e.ctaButton, children: /* @__PURE__ */ i(A, { as: "a", href: p || "#", size: "lg", onClick: g, children: "Get started" }) })
139
155
  ] }) })
140
156
  ] })
141
157
  ] }) });
142
158
  };
143
159
  export {
144
- R as ComparisonV2
160
+ U as ComparisonV2
145
161
  };
@@ -18,12 +18,6 @@
18
18
  padding: 5vw;
19
19
  }
20
20
 
21
- @media (max-width: 768px) {
22
- .container {
23
- padding: 2vw;
24
- }
25
- }
26
-
27
21
  .header {
28
22
  display: flex;
29
23
  align-items: center;
@@ -39,6 +33,15 @@
39
33
  max-width: 570px;
40
34
  }
41
35
 
36
+ .dot {
37
+ height: 8px;
38
+ width: 8px;
39
+ color: var(--color-text-primary-disabled);
40
+ border-radius: 50%;
41
+ display: inline-block;
42
+ margin-right: 8px;
43
+ }
44
+
42
45
  .tableContainer {
43
46
  width: 100%;
44
47
  background-color: var(--color-bg-neutral-light);
@@ -76,7 +79,10 @@
76
79
  .alternativeCol, .featuredCol {
77
80
  padding-right: 0;
78
81
  padding-bottom: 32px;
82
+ }
79
83
 
84
+ .alternativeCol:not(.featuredCol) {
85
+ border-top: 1px solid transparent;
80
86
  }
81
87
 
82
88
  .featuredCol {
@@ -86,10 +92,6 @@
86
92
  border-radius: var(--border-radius-lg);
87
93
  }
88
94
 
89
- .alternativeCol {
90
- border: 1px solid transparent;
91
- }
92
-
93
95
  .alternativeContent, .featuredContent {
94
96
  cursor: pointer;
95
97
  width: 100%;
@@ -125,11 +127,8 @@
125
127
  padding-inline: 3vw;
126
128
  }
127
129
 
128
- @media (max-width: 768px) {
129
- .featuredTitle, .alternativeTitle {
130
- color: var(--color-text-secondary);
131
- }
132
- }
130
+
131
+
133
132
 
134
133
  .featuredDescription, .alternativeDescription {
135
134
  color: var(--color-text-secondary);
@@ -180,6 +179,38 @@
180
179
  }
181
180
  }
182
181
 
182
+ @media (max-width: 768px) {
183
+ .container {
184
+ padding: 0 2vw;
185
+ gap: var(--spacing-40, 40px);
186
+ }
187
+ .header {
188
+ gap: var(--spacing-16, 16px);
189
+ }
190
+ .title {
191
+ padding: 4rem;
192
+ }
193
+ .featuredTitle, .alternativeTitle {
194
+ color: var(--color-text-secondary);
195
+ }
196
+ .activeDot, .activeTitle {
197
+ color: var(--color-text-primary);
198
+ }
199
+ .ctaContainer {
200
+ padding: 0;
201
+ }
202
+ .ctaBlock {
203
+ flex-direction: column;
204
+ align-items: center;
205
+ background-color: transparent;
206
+ padding: var(--spacing-24, 24px) 32px;
207
+ }
208
+ .ctaText {
209
+ text-align: center;
210
+ text-wrap: pretty;
211
+ }
212
+ }
213
+
183
214
  /* Tooltip */
184
215
 
185
216
  .tooltip {
@@ -223,12 +254,14 @@
223
254
  cursor: pointer;
224
255
  display: flex;
225
256
  align-items: center;
257
+ color: inherit;
226
258
  }
227
259
 
228
260
  .closeIcon {
229
- width: 16px;
230
- height: 16px;
261
+ width: 1.5rem;
262
+ height: 1.5rem;
231
263
  padding-inline: 8px;
264
+ color: inherit;
232
265
  }
233
266
 
234
267
  @keyframes slideInDown {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react"),o=require("../../../../src/modules/ComparisonV2/comparisonV2.module.css"),h=require("../../../../utils/cn/cn.cjs.js"),l=require("../../../../components/Typography/Typography.cjs.js"),s=require("../../../../components/Icon/Icon.cjs.js"),c=require("../../../../components/Icon/constants.cjs.js"),y=({title:p,description:m,onClose:n,isOpening:u,isClosing:d})=>{const t=a.useRef(null);return a.useEffect(()=>{const i=r=>{r.stopPropagation(),t.current&&!t.current.contains(r.target)&&n()};return document.addEventListener("mousedown",i),()=>{document.removeEventListener("mousedown",i)}},[n]),e.jsxs("div",{className:h.cn(o.tooltip,u&&o.tooltipOpening,d&&o.tooltipClosing),ref:t,children:[e.jsxs("div",{className:o.tooltipHeader,children:[e.jsx(l.Typography,{as:"h4",defaultVariant:"headingSm",mobileVariant:"headingXs",className:o.tooltipTitle,children:p}),e.jsxs("button",{className:o.closeButtonWrapper,onClick:n,children:[e.jsx(s.Icon,{name:c.EIconName.BRACKET_LEFT}),e.jsx(s.Icon,{className:o.closeIcon,name:c.EIconName.CLOSE}),e.jsx(s.Icon,{name:c.EIconName.BRACKET_RIGHT})]})]}),e.jsx(l.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",className:o.tooltipDescription,children:m})]})};exports.ComparisonV2Tooltip=y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react"),o=require("../../../../src/modules/ComparisonV2/comparisonV2.module.css"),h=require("../../../../utils/cn/cn.cjs.js"),l=require("../../../../components/Typography/Typography.cjs.js"),s=require("../../../../components/Icon/Icon.cjs.js"),c=require("../../../../components/Icon/constants.cjs.js"),y=({title:p,description:m,onClose:n,isOpening:u,isClosing:d})=>{const t=a.useRef(null);return a.useEffect(()=>{const i=r=>{r.stopPropagation(),t.current&&!t.current.contains(r.target)&&n()};return document.addEventListener("mousedown",i),()=>{document.removeEventListener("mousedown",i)}},[n]),e.jsxs("div",{className:h.cn(o.tooltip,u&&o.tooltipOpening,d&&o.tooltipClosing),ref:t,children:[e.jsxs("div",{className:o.tooltipHeader,children:[e.jsx(l.Typography,{as:"h4",defaultVariant:"headingSm",mobileVariant:"headingXs",className:o.tooltipTitle,children:p}),e.jsxs("button",{className:o.closeButtonWrapper,onClick:n,children:[e.jsx(s.Icon,{name:c.EIconName.BRACKET_LEFT}),e.jsx(s.Icon,{className:o.closeIcon,name:c.EIconName.CLOSE_BOLD}),e.jsx(s.Icon,{name:c.EIconName.BRACKET_RIGHT})]})]}),e.jsx(l.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",className:o.tooltipDescription,children:m})]})};exports.ComparisonV2Tooltip=y;
@@ -5,7 +5,7 @@ import { cn as E } from "../../../../utils/cn/cn.es.js";
5
5
  import { Typography as l } from "../../../../components/Typography/Typography.es.js";
6
6
  import { Icon as n } from "../../../../components/Icon/Icon.es.js";
7
7
  import { EIconName as a } from "../../../../components/Icon/constants.es.js";
8
- const V = ({
8
+ const R = ({
9
9
  title: c,
10
10
  description: p,
11
11
  onClose: e,
@@ -39,7 +39,7 @@ const V = ({
39
39
  ),
40
40
  /* @__PURE__ */ r("button", { className: o.closeButtonWrapper, onClick: e, children: [
41
41
  /* @__PURE__ */ t(n, { name: a.BRACKET_LEFT }),
42
- /* @__PURE__ */ t(n, { className: o.closeIcon, name: a.CLOSE }),
42
+ /* @__PURE__ */ t(n, { className: o.closeIcon, name: a.CLOSE_BOLD }),
43
43
  /* @__PURE__ */ t(n, { name: a.BRACKET_RIGHT })
44
44
  ] })
45
45
  ] }),
@@ -49,5 +49,5 @@ const V = ({
49
49
  );
50
50
  };
51
51
  export {
52
- V as ComparisonV2Tooltip
52
+ R as ComparisonV2Tooltip
53
53
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.2.30",
3
+ "version": "0.2.31",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),n=require("../../../../utils/cn/cn.cjs.js"),e=require("../../../../src/modules/ComparisonV2/comparisonV2.module.css"),r=require("../../../../components/Typography/Typography.cjs.js"),t=require("../../../../components/Icon/Icon.cjs.js"),c=require("../../../../components/Icon/constants.cjs.js"),i=({description:s})=>o.jsxs("div",{className:e.rowDescriptionContainer,children:[o.jsx(r.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",className:n.cn(e.featuredDescription,e.hideMobile),children:s}),o.jsx(t.Icon,{name:c.EIconName.DOT,className:n.cn(e.dot,e.hideDesktop)})]});exports.ComparisonV2Description=i;
@@ -1,4 +0,0 @@
1
- export declare const ComparisonV2Description: ({ description }: {
2
- title: string;
3
- description: string;
4
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,22 +0,0 @@
1
- import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
- import { cn as i } from "../../../../utils/cn/cn.es.js";
3
- import o from "../../../../modules/ComparisonV2/comparisonV2.module.css";
4
- import { Typography as t } from "../../../../components/Typography/Typography.es.js";
5
- import { Icon as a } from "../../../../components/Icon/Icon.es.js";
6
- import { EIconName as s } from "../../../../components/Icon/constants.es.js";
7
- const h = ({ description: e }) => /* @__PURE__ */ m("div", { className: o.rowDescriptionContainer, children: [
8
- /* @__PURE__ */ r(
9
- t,
10
- {
11
- as: "p",
12
- defaultVariant: "bodyMd",
13
- mobileVariant: "bodySm",
14
- className: i(o.featuredDescription, o.hideMobile),
15
- children: e
16
- }
17
- ),
18
- /* @__PURE__ */ r(a, { name: s.DOT, className: i(o.dot, o.hideDesktop) })
19
- ] });
20
- export {
21
- h as ComparisonV2Description
22
- };
@@ -1 +0,0 @@
1
- export { ComparisonV2Description } from './ComparisonV2Description';