@zenpatient-org/healthspan-marketing-ui 0.1.45 → 0.1.46
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 +6 -14
- package/dist/components/AnchorLinks/types.d.ts +0 -4
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/ComplexImageCarousel/ComplexImageCarousel.cjs.js +1 -1
- package/dist/components/ComplexImageCarousel/ComplexImageCarousel.d.ts +1 -1
- package/dist/components/ComplexImageCarousel/ComplexImageCarousel.es.js +55 -5
- package/dist/components/ComplexImageCarousel/complexImageCarousel.module.css.cjs.js +1 -0
- package/dist/components/ComplexImageCarousel/complexImageCarousel.module.css.es.js +24 -0
- package/dist/components/ComplexTooltip/ComplexTooltip.cjs.js +1 -1
- package/dist/components/ComplexTooltip/ComplexTooltip.d.ts +2 -5
- package/dist/components/ComplexTooltip/ComplexTooltip.es.js +29 -34
- package/dist/components/FAQComponent/FAQComponent.cjs.js +1 -1
- package/dist/components/FAQComponent/FAQComponent.es.js +1 -1
- package/dist/components/FAQComponent/components/FAQComponentItem/FAQComponentItem.cjs.js +1 -0
- package/dist/components/{FAQComponentItem → FAQComponent/components/FAQComponentItem}/FAQComponentItem.es.js +4 -4
- package/dist/components/FAQComponent/components/FAQComponentItem/faqComponentItem.module.css.cjs.js +1 -0
- package/dist/components/FAQComponent/components/FAQComponentItem/faqComponentItem.module.css.es.js +27 -0
- package/dist/components/FAQComponent/components/index.d.ts +1 -1
- package/dist/components/IconButton/IconButton.d.ts +1 -1
- package/dist/components/InfiniteScroll/InfiniteScroll.cjs.js +1 -1
- package/dist/components/InfiniteScroll/InfiniteScroll.d.ts +0 -1
- package/dist/components/InfiniteScroll/InfiniteScroll.es.js +46 -61
- package/dist/components/Label/index.d.ts +1 -1
- package/dist/components/Label/types.d.ts +3 -1
- package/dist/components/StepsCarousel/StepsCarousel.cjs.js +1 -1
- package/dist/components/StepsCarousel/StepsCarousel.es.js +35 -29
- package/dist/components/StudyGridCard/StudyGridCard.cjs.js +1 -1
- package/dist/components/StudyGridCard/StudyGridCard.d.ts +2 -10
- package/dist/components/StudyGridCard/StudyGridCard.es.js +60 -115
- package/dist/components/StudyGridCard/studyGridCard.module.css.cjs.js +1 -1
- package/dist/components/StudyGridCard/studyGridCard.module.css.es.js +12 -24
- package/dist/components/Tag/Tag.cjs.js +1 -1
- package/dist/components/Tag/Tag.d.ts +2 -2
- package/dist/components/Tag/Tag.es.js +11 -11
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/modules/FollowTheScience/FollowTheScience.cjs.js +1 -1
- package/dist/modules/FollowTheScience/FollowTheScience.d.ts +0 -1
- package/dist/modules/FollowTheScience/FollowTheScience.es.js +14 -13
- package/dist/modules/IndividualProductCard/IndividualProductCard.d.ts +2 -2
- package/dist/modules/IngredientHighlight/components/Ingredient/Ingredient.cjs.js +1 -1
- package/dist/modules/IngredientHighlight/components/Ingredient/Ingredient.es.js +6 -6
- package/dist/modules/IngredientHighlight/components/Ingredient/types.d.ts +1 -1
- package/dist/modules/IngredientHighlight/types.d.ts +1 -1
- package/dist/modules/ResearchEssentialReadings/ResearchEssentialReadings.cjs.js +1 -1
- package/dist/modules/ResearchEssentialReadings/ResearchEssentialReadings.es.js +13 -13
- package/dist/modules/ResearchEssentialReadings/index.d.ts +0 -2
- package/dist/modules/ResearchFeatured/ResearchFeatured.cjs.js +1 -1
- package/dist/modules/ResearchFeatured/ResearchFeatured.es.js +9 -9
- package/dist/modules/ResearchFeatured/index.d.ts +0 -1
- package/dist/modules/ResearchFilters/ResearchFilters.cjs.js +1 -1
- package/dist/modules/ResearchFilters/ResearchFilters.d.ts +1 -3
- package/dist/modules/ResearchFilters/ResearchFilters.es.js +24 -18
- package/dist/modules/ResearchStudies/ResearchStudies.cjs.js +1 -1
- package/dist/modules/ResearchStudies/ResearchStudies.d.ts +2 -8
- package/dist/modules/ResearchStudies/ResearchStudies.es.js +11 -10
- package/dist/modules/ResearchStudies/components/StudyCard/StudyCard.d.ts +1 -1
- package/dist/modules/ResearchStudies/components/StudyCard/index.d.ts +1 -0
- package/dist/modules/ResearchStudies/components/StudyCard/types.d.ts +10 -0
- package/dist/modules/ResearchStudies/components/index.d.ts +2 -0
- package/dist/modules/ResearchStudies/index.d.ts +0 -1
- package/dist/modules/ResearchStudies/types.d.ts +3 -8
- package/package.json +6 -1
- package/dist/components/ComplexImageCarousel/ComplexCarousel/ComplexCarousel.cjs.js +0 -1
- package/dist/components/ComplexImageCarousel/ComplexCarousel/ComplexCarousel.d.ts +0 -5
- package/dist/components/ComplexImageCarousel/ComplexCarousel/ComplexCarousel.es.js +0 -57
- package/dist/components/ComplexImageCarousel/ComplexCarousel/complexImageCarousel.module.css.cjs.js +0 -1
- package/dist/components/ComplexImageCarousel/ComplexCarousel/complexImageCarousel.module.css.es.js +0 -24
- package/dist/components/ComplexImageCarousel/ComplexCarousel/index.d.ts +0 -1
- package/dist/components/ComplexImageCarousel/SimpleImageCarousel/SimpleImageCarousel.cjs.js +0 -1
- package/dist/components/ComplexImageCarousel/SimpleImageCarousel/SimpleImageCarousel.d.ts +0 -5
- package/dist/components/ComplexImageCarousel/SimpleImageCarousel/SimpleImageCarousel.es.js +0 -76
- package/dist/components/ComplexImageCarousel/SimpleImageCarousel/index.d.ts +0 -1
- package/dist/components/ComplexImageCarousel/SimpleImageCarousel/simpleImageCarousel.module.css.cjs.js +0 -1
- package/dist/components/ComplexImageCarousel/SimpleImageCarousel/simpleImageCarousel.module.css.es.js +0 -15
- package/dist/components/FAQComponentItem/FAQComponentItem.cjs.js +0 -1
- package/dist/components/FAQComponentItem/faqComponentItem.module.css.cjs.js +0 -1
- package/dist/components/FAQComponentItem/faqComponentItem.module.css.es.js +0 -27
- package/dist/modules/ExpandingDetails/ExpandingDetails.cjs.js +0 -1
- package/dist/modules/ExpandingDetails/ExpandingDetails.d.ts +0 -3
- package/dist/modules/ExpandingDetails/ExpandingDetails.es.js +0 -157
- package/dist/modules/ExpandingDetails/expandingDetails.module.css.cjs.js +0 -1
- package/dist/modules/ExpandingDetails/expandingDetails.module.css.es.js +0 -47
- package/dist/modules/ExpandingDetails/index.d.ts +0 -1
- package/dist/modules/ExpandingDetails/types.d.ts +0 -13
- package/dist/modules/TextBlockAnimated/TextBlockAnimated.cjs.js +0 -1
- package/dist/modules/TextBlockAnimated/TextBlockAnimated.d.ts +0 -6
- package/dist/modules/TextBlockAnimated/TextBlockAnimated.es.js +0 -54
- package/dist/modules/TextBlockAnimated/index.d.ts +0 -1
- package/dist/modules/TextBlockAnimated/textBlockAnimated.module.css.cjs.js +0 -1
- package/dist/modules/TextBlockAnimated/textBlockAnimated.module.css.es.js +0 -21
- package/dist/node_modules/gsap/SplitText.cjs.js +0 -9
- package/dist/node_modules/gsap/SplitText.es.js +0 -148
- package/dist/pageComponents/HowItWorksHero/HowItWorksHero.d.ts +0 -1
- package/dist/pageComponents/HowItWorksHero/assets/Container.png.cjs.js +0 -1
- package/dist/pageComponents/HowItWorksHero/assets/Container.png.es.js +0 -4
- package/dist/pageComponents/HowItWorksHero/assets/people.png.cjs.js +0 -1
- package/dist/pageComponents/HowItWorksHero/assets/people.png.es.js +0 -4
- package/dist/pageComponents/HowItWorksHero/howItWorksHero.module.css.cjs.js +0 -1
- package/dist/pageComponents/HowItWorksHero/howItWorksHero.module.css.es.js +0 -17
- package/dist/pageComponents/HowItWorksHero/index.d.ts +0 -1
- package/dist/pageComponents/HowItWorksHero.cjs.js +0 -1
- package/dist/pageComponents/HowItWorksHero.es.js +0 -14
- /package/dist/components/{FAQComponentItem → FAQComponent/components/FAQComponentItem}/FAQComponentItem.d.ts +0 -0
- /package/dist/components/{FAQComponentItem → FAQComponent/components/FAQComponentItem}/index.d.ts +0 -0
- /package/dist/components/{FAQComponentItem → FAQComponent/components/FAQComponentItem}/types.d.ts +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as l, jsx as n, Fragment as X } from "react/jsx-runtime";
|
|
3
3
|
import { useState as V, useRef as m, useCallback as u } from "react";
|
|
4
4
|
import { cn as b } from "../../utils/cn/cn.es.js";
|
|
5
5
|
import { Label as k } from "../Label/Label.es.js";
|
|
6
6
|
import { ProgressButton as y } from "../ProgressButton/ProgressButton.es.js";
|
|
7
7
|
import { Typography as p } from "../Typography/Typography.es.js";
|
|
8
8
|
import t from "./stepsCarousel.module.css.es.js";
|
|
9
|
-
const
|
|
10
|
-
const [
|
|
9
|
+
const B = ({ steps: s, colorScheme: c }) => {
|
|
10
|
+
const [i, f] = V(0), g = m([]), o = m(null), d = m(null), v = u((e) => {
|
|
11
11
|
o.current = e.touches[0].clientX;
|
|
12
12
|
}, []), C = u((e) => {
|
|
13
13
|
d.current = e.touches[0].clientX;
|
|
@@ -17,52 +17,58 @@ const z = ({ steps: s, colorScheme: l }) => {
|
|
|
17
17
|
}, []), T = u(() => {
|
|
18
18
|
if (o.current !== null && d.current !== null) {
|
|
19
19
|
const e = d.current - o.current, r = 50;
|
|
20
|
-
f((
|
|
20
|
+
f((a) => e > r && a > 0 ? a - 1 : e < -r && a < s.length - 1 ? a + 1 : a);
|
|
21
21
|
}
|
|
22
22
|
o.current = null, d.current = null;
|
|
23
23
|
}, [s.length]);
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
/* @__PURE__ */
|
|
24
|
+
return /* @__PURE__ */ l("div", { className: t.root, "data-scheme": c, children: [
|
|
25
|
+
/* @__PURE__ */ n(
|
|
26
26
|
"div",
|
|
27
27
|
{
|
|
28
28
|
className: t.stepsContainer,
|
|
29
|
-
"data-scheme":
|
|
29
|
+
"data-scheme": c,
|
|
30
30
|
onTouchStart: v,
|
|
31
31
|
onTouchMove: C,
|
|
32
32
|
onTouchEnd: T,
|
|
33
33
|
children: s.map((e, r) => {
|
|
34
|
-
const
|
|
35
|
-
return /* @__PURE__ */
|
|
34
|
+
const a = i === r;
|
|
35
|
+
return /* @__PURE__ */ l(
|
|
36
36
|
"button",
|
|
37
37
|
{
|
|
38
38
|
ref: (N) => {
|
|
39
39
|
N && (g.current[r] = N);
|
|
40
40
|
},
|
|
41
|
-
className: b(t.card,
|
|
41
|
+
className: b(t.card, a && t.cardActive),
|
|
42
42
|
onClick: () => h(r),
|
|
43
43
|
type: "button",
|
|
44
44
|
children: [
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */
|
|
45
|
+
/* @__PURE__ */ n("div", { className: b(t.imageWrapper, a && t.imageWrapperActive), children: /* @__PURE__ */ n("img", { src: e.image, alt: e.title, className: t.image }) }),
|
|
46
|
+
/* @__PURE__ */ n("div", { className: t.stepLabel, children: a ? /* @__PURE__ */ l(X, { children: [
|
|
47
|
+
/* @__PURE__ */ l(
|
|
48
48
|
k,
|
|
49
49
|
{
|
|
50
50
|
size: "lg",
|
|
51
51
|
className: t.desktop,
|
|
52
|
-
color:
|
|
53
|
-
children:
|
|
52
|
+
color: c === "dark" ? "white" : "black",
|
|
53
|
+
children: [
|
|
54
|
+
"Step ",
|
|
55
|
+
r + 1
|
|
56
|
+
]
|
|
54
57
|
}
|
|
55
58
|
),
|
|
56
|
-
/* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ l(
|
|
57
60
|
k,
|
|
58
61
|
{
|
|
59
62
|
size: "sm",
|
|
60
63
|
className: t.mobile,
|
|
61
|
-
color:
|
|
62
|
-
children:
|
|
64
|
+
color: c === "dark" ? "white" : "black",
|
|
65
|
+
children: [
|
|
66
|
+
"Step ",
|
|
67
|
+
r + 1
|
|
68
|
+
]
|
|
63
69
|
}
|
|
64
70
|
)
|
|
65
|
-
] }) : /* @__PURE__ */
|
|
71
|
+
] }) : /* @__PURE__ */ l(
|
|
66
72
|
p,
|
|
67
73
|
{
|
|
68
74
|
defaultVariant: "labelSm",
|
|
@@ -75,9 +81,9 @@ const z = ({ steps: s, colorScheme: l }) => {
|
|
|
75
81
|
]
|
|
76
82
|
}
|
|
77
83
|
) }),
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
e.description && /* @__PURE__ */
|
|
84
|
+
/* @__PURE__ */ l("div", { className: t.textContainer, children: [
|
|
85
|
+
/* @__PURE__ */ n(p, { as: "h3", defaultVariant: "headingXs", mobileVariant: "headingXxs", children: e.title }),
|
|
86
|
+
e.description && /* @__PURE__ */ n(
|
|
81
87
|
p,
|
|
82
88
|
{
|
|
83
89
|
as: "p",
|
|
@@ -95,22 +101,22 @@ const z = ({ steps: s, colorScheme: l }) => {
|
|
|
95
101
|
})
|
|
96
102
|
}
|
|
97
103
|
),
|
|
98
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ n("div", { className: b(t.mobile, t.progressButtonContainer), children: /* @__PURE__ */ n(
|
|
99
105
|
y,
|
|
100
106
|
{
|
|
101
|
-
invert:
|
|
107
|
+
invert: c === "dark",
|
|
102
108
|
left: {
|
|
103
|
-
disabled:
|
|
104
|
-
onClick: () => h(
|
|
109
|
+
disabled: i <= 0,
|
|
110
|
+
onClick: () => h(i - 1)
|
|
105
111
|
},
|
|
106
112
|
right: {
|
|
107
|
-
disabled:
|
|
108
|
-
onClick: () => h(
|
|
113
|
+
disabled: i >= s.length - 1,
|
|
114
|
+
onClick: () => h(i + 1)
|
|
109
115
|
}
|
|
110
116
|
}
|
|
111
117
|
) })
|
|
112
118
|
] });
|
|
113
119
|
};
|
|
114
120
|
export {
|
|
115
|
-
|
|
121
|
+
B as StepsCarousel
|
|
116
122
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("../../utils/formatDate.cjs.js");require("../Icon/Icon.cjs.js");const o=require("../Icon/constants.cjs.js"),h=require("../Label/Label.cjs.js"),i=require("../TextButton/TextButton.cjs.js"),t=require("../Typography/Typography.cjs.js"),a=require("./studyGridCard.module.css.cjs.js");function f({title:n,link:r,inverted:d,image:u,date:c,label:s,readTime:l}){return e.jsxs("div",{className:a.default.study,"data-inverted":d,children:[e.jsx("div",{className:a.default.imagePart,style:{backgroundImage:`url(${u})`},children:s&&e.jsx(h.Label,{...s})}),e.jsxs("div",{className:a.default.dataPart,children:[e.jsxs("div",{className:a.default.info,children:[e.jsx(t.Typography,{defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"medium",color:"color-neutral-500",children:m.formatDate(c)}),!!l&&e.jsxs(e.Fragment,{children:[e.jsx(t.Typography,{defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"medium",color:"color-neutral-500",children:"•"}),e.jsxs(t.Typography,{defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"medium",color:"color-neutral-500",children:[l," MIN READ"]})]})]}),e.jsx(t.Typography,{className:a.default.title,defaultVariant:"headingSm",mobileVariant:"bodySm",as:"h6",children:n}),e.jsxs("div",{className:a.default.button,children:[e.jsx(i.TextButton,{hideOn:"desktop",className:a.default.mobileButton,size:"sm",as:"a",href:r,suffixIcon:o.EIconName.ARROW_FORWARD,children:"READ MORE"}),e.jsx(i.TextButton,{hideOn:"mobile",className:a.default.desktopButton,size:"lg",as:"a",href:r,suffixIcon:o.EIconName.ARROW_FORWARD,children:"READ MORE"})]})]})]})}exports.StudyGridCard=f;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { LabelProps } from '../Label';
|
|
2
2
|
|
|
3
|
-
export type
|
|
4
|
-
compressed: true;
|
|
5
|
-
title: string;
|
|
6
|
-
link: string;
|
|
7
|
-
image: string;
|
|
8
|
-
};
|
|
9
|
-
export type CompleteStudyCardProps = {
|
|
10
|
-
compressed?: false;
|
|
3
|
+
export type StudyGridCardProps = {
|
|
11
4
|
title: string;
|
|
12
5
|
inverted?: boolean;
|
|
13
6
|
image: string;
|
|
@@ -16,5 +9,4 @@ export type CompleteStudyCardProps = {
|
|
|
16
9
|
readTime: number;
|
|
17
10
|
link: string;
|
|
18
11
|
};
|
|
19
|
-
export
|
|
20
|
-
export declare function StudyGridCard(props: StudyGridCardProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function StudyGridCard({ title, link, inverted, image, date, label, readTime }: StudyGridCardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,140 +1,85 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { formatDate as
|
|
1
|
+
import { jsxs as r, jsx as a, Fragment as u } from "react/jsx-runtime";
|
|
2
|
+
import { formatDate as f } from "../../utils/formatDate.es.js";
|
|
3
3
|
import "../Icon/Icon.es.js";
|
|
4
|
-
import { EIconName as
|
|
4
|
+
import { EIconName as m } from "../Icon/constants.es.js";
|
|
5
5
|
import { Label as p } from "../Label/Label.es.js";
|
|
6
6
|
import { TextButton as s } from "../TextButton/TextButton.es.js";
|
|
7
|
-
import { Typography as
|
|
8
|
-
import { cn as m } from "../../utils/cn/cn.es.js";
|
|
7
|
+
import { Typography as i } from "../Typography/Typography.es.js";
|
|
9
8
|
import e from "./studyGridCard.module.css.es.js";
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
"div",
|
|
16
|
-
{
|
|
17
|
-
className: m(e.imagePart, e.imagePartCompressed),
|
|
18
|
-
style: { backgroundImage: `url(${n})` }
|
|
19
|
-
}
|
|
20
|
-
),
|
|
21
|
-
/* @__PURE__ */ i("div", { className: m(e.dataPart, e.dataPartCompressed), children: [
|
|
9
|
+
function v({ title: n, link: t, inverted: d, image: c, date: h, label: l, readTime: o }) {
|
|
10
|
+
return /* @__PURE__ */ r("div", { className: e.study, "data-inverted": d, children: [
|
|
11
|
+
/* @__PURE__ */ a("div", { className: e.imagePart, style: { backgroundImage: `url(${c})` }, children: l && /* @__PURE__ */ a(p, { ...l }) }),
|
|
12
|
+
/* @__PURE__ */ r("div", { className: e.dataPart, children: [
|
|
13
|
+
/* @__PURE__ */ r("div", { className: e.info, children: [
|
|
22
14
|
/* @__PURE__ */ a(
|
|
23
|
-
|
|
15
|
+
i,
|
|
24
16
|
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
17
|
+
defaultVariant: "labelSm",
|
|
18
|
+
mobileVariant: "labelXs",
|
|
19
|
+
emphasis: !0,
|
|
20
|
+
weight: "medium",
|
|
21
|
+
color: "color-neutral-500",
|
|
22
|
+
children: f(h)
|
|
30
23
|
}
|
|
31
24
|
),
|
|
32
|
-
/* @__PURE__ */
|
|
25
|
+
!!o && /* @__PURE__ */ r(u, { children: [
|
|
33
26
|
/* @__PURE__ */ a(
|
|
34
|
-
|
|
35
|
-
{
|
|
36
|
-
hideOn: "desktop",
|
|
37
|
-
className: e.mobileButton,
|
|
38
|
-
size: "sm",
|
|
39
|
-
as: "a",
|
|
40
|
-
href: t,
|
|
41
|
-
suffixIcon: l.ARROW_FORWARD,
|
|
42
|
-
children: "READ MORE"
|
|
43
|
-
}
|
|
44
|
-
),
|
|
45
|
-
/* @__PURE__ */ a(
|
|
46
|
-
s,
|
|
47
|
-
{
|
|
48
|
-
hideOn: "mobile",
|
|
49
|
-
className: e.desktopButton,
|
|
50
|
-
size: "lg",
|
|
51
|
-
as: "a",
|
|
52
|
-
href: t,
|
|
53
|
-
suffixIcon: l.ARROW_FORWARD,
|
|
54
|
-
children: "READ MORE"
|
|
55
|
-
}
|
|
56
|
-
)
|
|
57
|
-
] })
|
|
58
|
-
] }),
|
|
59
|
-
/* @__PURE__ */ a("div", { className: e.borderLeft }),
|
|
60
|
-
/* @__PURE__ */ a("div", { className: e.borderRight })
|
|
61
|
-
] });
|
|
62
|
-
} else {
|
|
63
|
-
const { title: o, link: t, image: n, inverted: h, date: u, label: c, readTime: f } = d;
|
|
64
|
-
return /* @__PURE__ */ i("div", { className: e.study, "data-inverted": h, children: [
|
|
65
|
-
/* @__PURE__ */ a("div", { className: e.imagePart, style: { backgroundImage: `url(${n})` }, children: c && /* @__PURE__ */ a(p, { ...c }) }),
|
|
66
|
-
/* @__PURE__ */ i("div", { className: e.dataPart, children: [
|
|
67
|
-
/* @__PURE__ */ i("div", { className: e.info, children: [
|
|
68
|
-
/* @__PURE__ */ a(
|
|
69
|
-
r,
|
|
27
|
+
i,
|
|
70
28
|
{
|
|
71
29
|
defaultVariant: "labelSm",
|
|
72
30
|
mobileVariant: "labelXs",
|
|
73
31
|
emphasis: !0,
|
|
74
32
|
weight: "medium",
|
|
75
33
|
color: "color-neutral-500",
|
|
76
|
-
children:
|
|
77
|
-
}
|
|
78
|
-
),
|
|
79
|
-
/* @__PURE__ */ i(R, { children: [
|
|
80
|
-
/* @__PURE__ */ a(
|
|
81
|
-
r,
|
|
82
|
-
{
|
|
83
|
-
defaultVariant: "labelSm",
|
|
84
|
-
mobileVariant: "labelXs",
|
|
85
|
-
emphasis: !0,
|
|
86
|
-
weight: "medium",
|
|
87
|
-
color: "color-neutral-500",
|
|
88
|
-
children: "•"
|
|
89
|
-
}
|
|
90
|
-
),
|
|
91
|
-
/* @__PURE__ */ i(
|
|
92
|
-
r,
|
|
93
|
-
{
|
|
94
|
-
defaultVariant: "labelSm",
|
|
95
|
-
mobileVariant: "labelXs",
|
|
96
|
-
emphasis: !0,
|
|
97
|
-
weight: "medium",
|
|
98
|
-
color: "color-neutral-500",
|
|
99
|
-
children: [
|
|
100
|
-
f,
|
|
101
|
-
" MIN READ"
|
|
102
|
-
]
|
|
103
|
-
}
|
|
104
|
-
)
|
|
105
|
-
] })
|
|
106
|
-
] }),
|
|
107
|
-
/* @__PURE__ */ a(r, { className: e.title, defaultVariant: "headingSm", mobileVariant: "bodySm", as: "h6", children: o }),
|
|
108
|
-
/* @__PURE__ */ i("div", { className: e.button, children: [
|
|
109
|
-
/* @__PURE__ */ a(
|
|
110
|
-
s,
|
|
111
|
-
{
|
|
112
|
-
hideOn: "desktop",
|
|
113
|
-
className: e.mobileButton,
|
|
114
|
-
size: "sm",
|
|
115
|
-
as: "a",
|
|
116
|
-
href: t,
|
|
117
|
-
suffixIcon: l.ARROW_FORWARD,
|
|
118
|
-
children: "READ MORE"
|
|
34
|
+
children: "•"
|
|
119
35
|
}
|
|
120
36
|
),
|
|
121
|
-
/* @__PURE__ */
|
|
122
|
-
|
|
37
|
+
/* @__PURE__ */ r(
|
|
38
|
+
i,
|
|
123
39
|
{
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
40
|
+
defaultVariant: "labelSm",
|
|
41
|
+
mobileVariant: "labelXs",
|
|
42
|
+
emphasis: !0,
|
|
43
|
+
weight: "medium",
|
|
44
|
+
color: "color-neutral-500",
|
|
45
|
+
children: [
|
|
46
|
+
o,
|
|
47
|
+
" MIN READ"
|
|
48
|
+
]
|
|
131
49
|
}
|
|
132
50
|
)
|
|
133
51
|
] })
|
|
52
|
+
] }),
|
|
53
|
+
/* @__PURE__ */ a(i, { className: e.title, defaultVariant: "headingSm", mobileVariant: "bodySm", as: "h6", children: n }),
|
|
54
|
+
/* @__PURE__ */ r("div", { className: e.button, children: [
|
|
55
|
+
/* @__PURE__ */ a(
|
|
56
|
+
s,
|
|
57
|
+
{
|
|
58
|
+
hideOn: "desktop",
|
|
59
|
+
className: e.mobileButton,
|
|
60
|
+
size: "sm",
|
|
61
|
+
as: "a",
|
|
62
|
+
href: t,
|
|
63
|
+
suffixIcon: m.ARROW_FORWARD,
|
|
64
|
+
children: "READ MORE"
|
|
65
|
+
}
|
|
66
|
+
),
|
|
67
|
+
/* @__PURE__ */ a(
|
|
68
|
+
s,
|
|
69
|
+
{
|
|
70
|
+
hideOn: "mobile",
|
|
71
|
+
className: e.desktopButton,
|
|
72
|
+
size: "lg",
|
|
73
|
+
as: "a",
|
|
74
|
+
href: t,
|
|
75
|
+
suffixIcon: m.ARROW_FORWARD,
|
|
76
|
+
children: "READ MORE"
|
|
77
|
+
}
|
|
78
|
+
)
|
|
134
79
|
] })
|
|
135
|
-
] })
|
|
136
|
-
}
|
|
80
|
+
] })
|
|
81
|
+
] });
|
|
137
82
|
}
|
|
138
83
|
export {
|
|
139
|
-
|
|
84
|
+
v as StudyGridCard
|
|
140
85
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="studyGridCard-module__study___mkYRU",d="studyGridCard-module__imagePart___fvIQO",
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="studyGridCard-module__study___mkYRU",d="studyGridCard-module__imagePart___fvIQO",_="studyGridCard-module__dataPart___mweMi",o="studyGridCard-module__info___xY-Kk",e="studyGridCard-module__title___U2va1",u="studyGridCard-module__button___bvI0u",a="studyGridCard-module__mobileButton___v-RZs",i={study:t,imagePart:d,dataPart:_,info:o,title:e,button:u,mobileButton:a};exports.button=u;exports.dataPart=_;exports.default=i;exports.imagePart=d;exports.info=o;exports.mobileButton=a;exports.study=t;exports.title=e;
|
|
@@ -1,31 +1,19 @@
|
|
|
1
|
-
const t = "studyGridCard-module__study___mkYRU", d = "studyGridCard-module__imagePart___fvIQO",
|
|
1
|
+
const t = "studyGridCard-module__study___mkYRU", d = "studyGridCard-module__imagePart___fvIQO", _ = "studyGridCard-module__dataPart___mweMi", o = "studyGridCard-module__info___xY-Kk", a = "studyGridCard-module__title___U2va1", u = "studyGridCard-module__button___bvI0u", s = "studyGridCard-module__mobileButton___v-RZs", r = {
|
|
2
2
|
study: t,
|
|
3
3
|
imagePart: d,
|
|
4
|
-
dataPart:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
mobileButton: a,
|
|
10
|
-
studyCompressed: u,
|
|
11
|
-
imagePartCompressed: m,
|
|
12
|
-
titleCompressed: i,
|
|
13
|
-
borderLeft: C,
|
|
14
|
-
borderRight: l
|
|
4
|
+
dataPart: _,
|
|
5
|
+
info: o,
|
|
6
|
+
title: a,
|
|
7
|
+
button: u,
|
|
8
|
+
mobileButton: s
|
|
15
9
|
};
|
|
16
10
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
e as dataPart,
|
|
21
|
-
_ as dataPartCompressed,
|
|
22
|
-
n as default,
|
|
11
|
+
u as button,
|
|
12
|
+
_ as dataPart,
|
|
13
|
+
r as default,
|
|
23
14
|
d as imagePart,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
a as mobileButton,
|
|
15
|
+
o as info,
|
|
16
|
+
s as mobileButton,
|
|
27
17
|
t as study,
|
|
28
|
-
|
|
29
|
-
s as title,
|
|
30
|
-
i as titleCompressed
|
|
18
|
+
a as title
|
|
31
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../styles/typography.module.css.cjs.js"),m=require("../../utils/cn/cn.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../styles/typography.module.css.cjs.js"),m=require("../../utils/cn/cn.cjs.js"),s=require("../Icon/Icon.cjs.js"),t=require("./tag.module.css.cjs.js"),g={md:l.default.labelMd,lg:l.default.labelLg},j=({value:r,children:o,active:d,disabled:u,size:a="md",prefixIcon:n,suffixIcon:c,onClick:i})=>e.jsx("button",{className:m.cn(t.default.tag,g[a],{[t.default.active]:d},t.default[a]),disabled:u,onClick:()=>i(r),children:e.jsxs("div",{className:t.default.content,children:[n&&e.jsx("div",{className:t.default.iconWrap,children:e.jsx(s.Icon,{name:n})}),e.jsx("p",{children:o}),c&&e.jsx("div",{className:t.default.iconWrap,children:e.jsx(s.Icon,{name:c})})]})});exports.Tag=j;
|
|
@@ -3,14 +3,14 @@ import { EIconName } from '../Icon';
|
|
|
3
3
|
|
|
4
4
|
type Props = {
|
|
5
5
|
children: ReactNode;
|
|
6
|
-
value
|
|
6
|
+
value: string;
|
|
7
7
|
active?: boolean;
|
|
8
8
|
size?: 'md' | 'lg';
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
prefixIcon?: EIconName;
|
|
11
11
|
suffixIcon?: EIconName;
|
|
12
12
|
iconPosition?: 'left' | 'right';
|
|
13
|
-
onClick
|
|
13
|
+
onClick: (value: string) => void;
|
|
14
14
|
};
|
|
15
15
|
export declare const Tag: ({ value, children, active, disabled, size, prefixIcon, suffixIcon, onClick }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
1
|
+
import { jsx as r, jsxs as p } from "react/jsx-runtime";
|
|
2
2
|
import c from "../../styles/typography.module.css.es.js";
|
|
3
3
|
import { cn as g } from "../../utils/cn/cn.es.js";
|
|
4
|
-
import { Icon as
|
|
5
|
-
import
|
|
4
|
+
import { Icon as e } from "../Icon/Icon.es.js";
|
|
5
|
+
import a from "./tag.module.css.es.js";
|
|
6
6
|
const h = {
|
|
7
7
|
md: c.labelMd,
|
|
8
8
|
lg: c.labelLg
|
|
9
|
-
}, f = ({ value:
|
|
9
|
+
}, f = ({ value: l, children: n, active: i, disabled: s, size: m = "md", prefixIcon: o, suffixIcon: t, onClick: d }) => /* @__PURE__ */ r(
|
|
10
10
|
"button",
|
|
11
11
|
{
|
|
12
|
-
className: g(
|
|
13
|
-
disabled:
|
|
14
|
-
onClick: () =>
|
|
15
|
-
children: /* @__PURE__ */
|
|
16
|
-
o && /* @__PURE__ */ r("div", { className:
|
|
17
|
-
/* @__PURE__ */ r("p", { children:
|
|
18
|
-
|
|
12
|
+
className: g(a.tag, h[m], { [a.active]: i }, a[m]),
|
|
13
|
+
disabled: s,
|
|
14
|
+
onClick: () => d(l),
|
|
15
|
+
children: /* @__PURE__ */ p("div", { className: a.content, children: [
|
|
16
|
+
o && /* @__PURE__ */ r("div", { className: a.iconWrap, children: /* @__PURE__ */ r(e, { name: o }) }),
|
|
17
|
+
/* @__PURE__ */ r("p", { children: n }),
|
|
18
|
+
t && /* @__PURE__ */ r("div", { className: a.iconWrap, children: /* @__PURE__ */ r(e, { name: t }) })
|
|
19
19
|
] })
|
|
20
20
|
}
|
|
21
21
|
);
|