@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.
- package/dist/modules/Citation/citation.module.css +4 -3
- package/dist/modules/ComparisonV2/ComparisonV2.cjs.js +1 -1
- package/dist/modules/ComparisonV2/ComparisonV2.es.js +99 -83
- package/dist/modules/ComparisonV2/comparisonV2.module.css +50 -17
- package/dist/modules/ComparisonV2/components/ComparisonV2Tooltip/ComparisonV2Tooltip.cjs.js +1 -1
- package/dist/modules/ComparisonV2/components/ComparisonV2Tooltip/ComparisonV2Tooltip.es.js +3 -3
- package/package.json +1 -1
- package/dist/modules/ComparisonV2/components/ComparisonV2Description/ComparisonV2Description.cjs.js +0 -1
- package/dist/modules/ComparisonV2/components/ComparisonV2Description/ComparisonV2Description.d.ts +0 -4
- package/dist/modules/ComparisonV2/components/ComparisonV2Description/ComparisonV2Description.es.js +0 -22
- package/dist/modules/ComparisonV2/components/ComparisonV2Description/index.d.ts +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.root {
|
|
2
2
|
width: 100%;
|
|
3
|
-
padding:
|
|
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
|
-
.
|
|
21
|
-
padding:
|
|
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
|
|
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
|
|
3
|
-
import { useState as
|
|
4
|
-
import { EAnalyticsEventType as
|
|
5
|
-
import { useIsMobile as
|
|
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
|
|
10
|
-
import { HighlightedTitle as
|
|
11
|
-
import { Typography as
|
|
12
|
-
import { ComparisonV2Tooltip as
|
|
13
|
-
import {
|
|
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
|
|
16
|
-
title:
|
|
17
|
-
description:
|
|
18
|
-
ctaBlock:
|
|
19
|
-
getStartedLink:
|
|
20
|
-
comparisonV2Columns:
|
|
16
|
+
const U = ({
|
|
17
|
+
title: v,
|
|
18
|
+
description: f,
|
|
19
|
+
ctaBlock: u,
|
|
20
|
+
getStartedLink: p,
|
|
21
|
+
comparisonV2Columns: b
|
|
21
22
|
}) => {
|
|
22
|
-
const [t,
|
|
23
|
-
var
|
|
24
|
-
(
|
|
25
|
-
event:
|
|
26
|
-
type:
|
|
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:
|
|
30
|
+
link: p
|
|
30
31
|
}
|
|
31
32
|
});
|
|
32
|
-
}, y = (
|
|
33
|
-
T && (t ===
|
|
34
|
-
|
|
35
|
-
}, 250)) : t ? (
|
|
36
|
-
|
|
37
|
-
}, 250)) :
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
|
|
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__ */
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
|
|
47
|
-
|
|
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:
|
|
62
|
+
children: f
|
|
54
63
|
}
|
|
55
64
|
)
|
|
56
65
|
] }),
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
/* @__PURE__ */
|
|
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:
|
|
62
|
-
[e.featuredCol]:
|
|
70
|
+
className: c(e.alternativeCol, {
|
|
71
|
+
[e.featuredCol]: a.featured
|
|
63
72
|
}),
|
|
64
73
|
children: [
|
|
65
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ i(
|
|
66
75
|
"div",
|
|
67
76
|
{
|
|
68
|
-
className:
|
|
69
|
-
[e.featuredHeaderCell]:
|
|
77
|
+
className: c(e.alternativeHeaderCell, {
|
|
78
|
+
[e.featuredHeaderCell]: a.featured
|
|
70
79
|
}),
|
|
71
|
-
children: k(
|
|
72
|
-
|
|
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:
|
|
87
|
+
children: a.comparisonV2Header.title
|
|
79
88
|
}
|
|
80
89
|
)
|
|
81
90
|
}
|
|
82
91
|
),
|
|
83
|
-
|
|
84
|
-
const
|
|
85
|
-
return /* @__PURE__ */
|
|
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(
|
|
98
|
+
onClick: () => y(l),
|
|
90
99
|
children: [
|
|
91
|
-
(t ===
|
|
92
|
-
|
|
100
|
+
(t === l || h === l) && /* @__PURE__ */ i(
|
|
101
|
+
x,
|
|
93
102
|
{
|
|
94
|
-
title:
|
|
95
|
-
description:
|
|
96
|
-
onClose:
|
|
97
|
-
isOpening: t ===
|
|
98
|
-
isClosing:
|
|
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__ */
|
|
102
|
-
|
|
110
|
+
/* @__PURE__ */ i(
|
|
111
|
+
m,
|
|
103
112
|
{
|
|
104
113
|
as: "p",
|
|
105
114
|
defaultVariant: "preambleMd",
|
|
106
115
|
mobileVariant: "bodyXl",
|
|
107
|
-
className: e.alternativeTitle,
|
|
108
|
-
|
|
116
|
+
className: c(e.alternativeTitle, {
|
|
117
|
+
[e.activeTitle]: t === l
|
|
118
|
+
}),
|
|
119
|
+
children: r.title
|
|
109
120
|
}
|
|
110
121
|
),
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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
|
-
|
|
145
|
+
C
|
|
121
146
|
);
|
|
122
147
|
})
|
|
123
148
|
]
|
|
124
149
|
},
|
|
125
|
-
|
|
150
|
+
n
|
|
126
151
|
)) }),
|
|
127
|
-
|
|
128
|
-
/* @__PURE__ */
|
|
129
|
-
|
|
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
|
-
|
|
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
|
-
|
|
129
|
-
|
|
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:
|
|
230
|
-
height:
|
|
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.
|
|
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
|
|
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.
|
|
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
|
-
|
|
52
|
+
R as ComparisonV2Tooltip
|
|
53
53
|
};
|
package/package.json
CHANGED
package/dist/modules/ComparisonV2/components/ComparisonV2Description/ComparisonV2Description.cjs.js
DELETED
|
@@ -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;
|
package/dist/modules/ComparisonV2/components/ComparisonV2Description/ComparisonV2Description.es.js
DELETED
|
@@ -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';
|