@zenpatient-org/healthspan-marketing-ui 0.1.57 → 0.1.59
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/ContentTabs/ContentTabs.cjs.js +1 -1
- package/dist/components/ContentTabs/ContentTabs.d.ts +2 -1
- package/dist/components/ContentTabs/ContentTabs.es.js +21 -19
- package/dist/components/ContentTabs/contentTabs.module.css.cjs.js +1 -1
- package/dist/components/ContentTabs/contentTabs.module.css.es.js +10 -8
- package/dist/components/Icon/constants.cjs.js +1 -1
- package/dist/components/Icon/constants.d.ts +1 -0
- package/dist/components/Icon/constants.es.js +2 -1
- package/dist/components/Icon/iconsMap.cjs.js +1 -1
- package/dist/components/Icon/iconsMap.es.js +84 -82
- package/dist/components/ProgramCard/ProgramCard.cjs.js +1 -1
- package/dist/components/ProgramCard/ProgramCard.d.ts +10 -1
- package/dist/components/ProgramCard/ProgramCard.es.js +32 -14
- package/dist/components/ProgramCard/programCard.module.css.cjs.js +1 -1
- package/dist/components/ProgramCard/programCard.module.css.es.js +6 -4
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/icons/arrow/arrow-forward-thin.svg.cjs.js +1 -0
- package/dist/icons/arrow/arrow-forward-thin.svg.es.js +5 -0
- package/dist/modules/TotalCare/TotalCare.cjs.js +1 -1
- package/dist/modules/TotalCare/TotalCare.d.ts +2 -1
- package/dist/modules/TotalCare/TotalCare.es.js +17 -16
- package/dist/modules/WhatIs/WhatIs.cjs.js +1 -0
- package/dist/modules/WhatIs/WhatIs.d.ts +7 -0
- package/dist/modules/WhatIs/WhatIs.es.js +16 -0
- package/dist/modules/WhatIs/index.d.ts +1 -0
- package/dist/modules/WhatIs/whatIs.module.css.cjs.js +1 -0
- package/dist/modules/WhatIs/whatIs.module.css.es.js +15 -0
- package/dist/pageComponents/TreatmentsHero/TreatmentsHero.cjs.js +1 -1
- package/dist/pageComponents/TreatmentsHero/TreatmentsHero.es.js +7 -7
- package/dist/pageComponents/TreatmentsHero/treatmentsHero.module.css.cjs.js +1 -1
- package/dist/pageComponents/TreatmentsHero/treatmentsHero.module.css.es.js +19 -17
- package/package.json +6 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),r=require("../../styles/typography.module.css.cjs.js"),s=require("../../utils/cn/cn.cjs.js"),d=require("../IconBracket/IconBracket.cjs.js"),u=require("../Icon/Icon.cjs.js"),l=require("./contentTabs.module.css.cjs.js");function m({tabs:t,activeTab:c,colorScheme:a,activeWithArrow:i,onTabClick:o}){return n.jsx("div",{className:s.cn(l.default.root,l.default[a]),children:t.map(e=>n.jsxs("div",{className:l.default.tabWrap,children:[n.jsxs("button",{className:s.cn(l.default.tab,{[l.default.activeTab]:c.label===e.label}),onClick:()=>o(e),children:[c.label===e.label&&i&&n.jsx("div",{className:l.default.arrow,children:n.jsx(d.IconBracket,{variant:"arrow",size:"md",colorScheme:a})}),e.icon&&n.jsx("div",{className:l.default.icon,children:n.jsx(u.Icon,{name:e.icon})}),n.jsx("div",{className:r.default.headingXs,children:e.label})]}),n.jsx("p",{className:s.cn(l.default.description,{[l.default.descriptionActive]:c.label===e.label},r.default.bodySm),children:e.description})]},String(e.label)))})}exports.ContentTabs=m;
|
|
@@ -12,7 +12,8 @@ type Props = {
|
|
|
12
12
|
activeTab: TContentTab;
|
|
13
13
|
tabs: ReadonlyArray<TContentTab>;
|
|
14
14
|
colorScheme: TColorScheme;
|
|
15
|
+
activeWithArrow?: boolean;
|
|
15
16
|
onTabClick: (value: TContentTab) => void;
|
|
16
17
|
};
|
|
17
|
-
export declare function ContentTabs({ tabs, activeTab, colorScheme, onTabClick }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function ContentTabs({ tabs, activeTab, colorScheme, activeWithArrow, onTabClick }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
export {};
|
|
@@ -1,38 +1,40 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import s from "../../styles/typography.module.css.es.js";
|
|
3
3
|
import { cn as o } from "../../utils/cn/cn.es.js";
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
import { IconBracket as t } from "../IconBracket/IconBracket.es.js";
|
|
5
|
+
import { Icon as p } from "../Icon/Icon.es.js";
|
|
6
|
+
import i from "./contentTabs.module.css.es.js";
|
|
7
|
+
function g({ tabs: c, activeTab: l, colorScheme: n, activeWithArrow: m, onTabClick: d }) {
|
|
8
|
+
return /* @__PURE__ */ e("div", { className: o(i.root, i[n]), children: c.map((r) => /* @__PURE__ */ a("div", { className: i.tabWrap, children: [
|
|
9
|
+
/* @__PURE__ */ a(
|
|
9
10
|
"button",
|
|
10
11
|
{
|
|
11
|
-
className: o(
|
|
12
|
-
[
|
|
12
|
+
className: o(i.tab, {
|
|
13
|
+
[i.activeTab]: l.label === r.label
|
|
13
14
|
}),
|
|
14
|
-
onClick: () =>
|
|
15
|
+
onClick: () => d(r),
|
|
15
16
|
children: [
|
|
16
|
-
|
|
17
|
-
/* @__PURE__ */
|
|
17
|
+
l.label === r.label && m && /* @__PURE__ */ e("div", { className: i.arrow, children: /* @__PURE__ */ e(t, { variant: "arrow", size: "md", colorScheme: n }) }),
|
|
18
|
+
r.icon && /* @__PURE__ */ e("div", { className: i.icon, children: /* @__PURE__ */ e(p, { name: r.icon }) }),
|
|
19
|
+
/* @__PURE__ */ e("div", { className: s.headingXs, children: r.label })
|
|
18
20
|
]
|
|
19
21
|
}
|
|
20
22
|
),
|
|
21
|
-
/* @__PURE__ */
|
|
23
|
+
/* @__PURE__ */ e(
|
|
22
24
|
"p",
|
|
23
25
|
{
|
|
24
26
|
className: o(
|
|
25
|
-
|
|
27
|
+
i.description,
|
|
26
28
|
{
|
|
27
|
-
[
|
|
29
|
+
[i.descriptionActive]: l.label === r.label
|
|
28
30
|
},
|
|
29
|
-
|
|
31
|
+
s.bodySm
|
|
30
32
|
),
|
|
31
|
-
children:
|
|
33
|
+
children: r.description
|
|
32
34
|
}
|
|
33
35
|
)
|
|
34
|
-
] }, String(
|
|
36
|
+
] }, String(r.label))) });
|
|
35
37
|
}
|
|
36
38
|
export {
|
|
37
|
-
|
|
39
|
+
g as ContentTabs
|
|
38
40
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="contentTabs-module__root___vJVGt",o="contentTabs-module__tabWrap___jwBNf",
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="contentTabs-module__root___vJVGt",o="contentTabs-module__tabWrap___jwBNf",_="contentTabs-module__tab___oMzRn",e="contentTabs-module__light___LyVtp",n="contentTabs-module__dark___-VJo6",a="contentTabs-module__activeTab___0Uvh6",c="contentTabs-module__icon___nyuv-",i="contentTabs-module__description___sM2G-",s="contentTabs-module__arrow___br86J",r="contentTabs-module__descriptionActive___aa8C1",d={root:t,tabWrap:o,tab:_,light:e,dark:n,activeTab:a,icon:c,description:i,arrow:s,descriptionActive:r};exports.activeTab=a;exports.arrow=s;exports.dark=n;exports.default=d;exports.description=i;exports.descriptionActive=r;exports.icon=c;exports.light=e;exports.root=t;exports.tab=_;exports.tabWrap=o;
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
const t = "contentTabs-module__root___vJVGt", o = "contentTabs-module__tabWrap___jwBNf", _ = "contentTabs-module__tab___oMzRn", n = "contentTabs-module__light___LyVtp", c = "contentTabs-module__dark___-VJo6",
|
|
1
|
+
const t = "contentTabs-module__root___vJVGt", o = "contentTabs-module__tabWrap___jwBNf", _ = "contentTabs-module__tab___oMzRn", n = "contentTabs-module__light___LyVtp", c = "contentTabs-module__dark___-VJo6", a = "contentTabs-module__activeTab___0Uvh6", e = "contentTabs-module__icon___nyuv-", s = "contentTabs-module__description___sM2G-", i = "contentTabs-module__arrow___br86J", r = "contentTabs-module__descriptionActive___aa8C1", b = {
|
|
2
2
|
root: t,
|
|
3
3
|
tabWrap: o,
|
|
4
4
|
tab: _,
|
|
5
5
|
light: n,
|
|
6
6
|
dark: c,
|
|
7
|
-
activeTab:
|
|
8
|
-
icon:
|
|
7
|
+
activeTab: a,
|
|
8
|
+
icon: e,
|
|
9
9
|
description: s,
|
|
10
|
-
|
|
10
|
+
arrow: i,
|
|
11
|
+
descriptionActive: r
|
|
11
12
|
};
|
|
12
13
|
export {
|
|
13
|
-
|
|
14
|
+
a as activeTab,
|
|
15
|
+
i as arrow,
|
|
14
16
|
c as dark,
|
|
15
|
-
|
|
17
|
+
b as default,
|
|
16
18
|
s as description,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
r as descriptionActive,
|
|
20
|
+
e as icon,
|
|
19
21
|
n as light,
|
|
20
22
|
t as root,
|
|
21
23
|
_ as tab,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var l=(r=>(r.ALERT_ERROR_FILL="alert-error-fill",r.ALERT_ERROR="alert-error",r.CHECK="check",r.CIRCLE_CHECK_FILL="circle-check-fill",r.CIRCLE_CHECK="circle-check",r.CLOSE="close",r.BRACKET_LEFT="bracket-left",r.BRACKET_RIGHT="bracket-right",r.HELP="help",r.INFO="info",r.MENU="menu",r.PLUS="plus",r.PLAY="play",r.REMOVE="remove",r.SEARCH="search",r.WARNING="warning",r.ARROW_BACK="arrow-back",r.ARROW_DOWNWARD="arrow-downward",r.ARROW_FORWARD="arrow-forward",r.ARROW_INSERT="arrow-insert",r.ARROW_OUTWARD="arrow-outward",r.ARROW_RETURN="arrow-return",r.ARROW_UPWARD="arrow-upward",r.CHEVRON_BACK="chevron-back",r.CHEVRON_DOWN="chevron-down",r.CHEVRON_FORWARD="chevron-forward",r.CHEVRON_UP="chevron-up",r.MESSAGE_FILL="message-fill",r.MESSAGE="message",r.CALENDAR="calendar",r.CART="cart",r.PACKAGE_FILL="package-fill",r.PACKAGE="package",r.SMILE_FILL="smile-fill",r.SMILE="smile",r.CIRCLE_DASH_FILL="circle-dash-fill",r.CIRCLE_DASH="circle-dash",r.PIN_DROP="pin-drop",r.FILTER="filter",r.COACHING="coaching",r.LABS="labs",r.MYSPAN="myspan",r.OPTIMIZATIONS="optimizations",r.PROTOCOLS="protocols",r.RULER="ruler",r.SCALE="scale",r.FACEBOOK="facebook",r.HEART_FILL="heart-fill",r.HEART="heart",r.INSTAGRAM="instagram",r.STAR_FILL="star-fill",r.STAR_HALF="star-half",r.STAR_OUTLINE="star-outline",r.STAR="star",r.X="x",r.ARROW_BOLD="arrow-bold",r.CLOSE_BOLD="close-bold",r.DOT_BOLD="dot-bold",r.PLUS_BOLD="plus-bold",r))(l||{});const a={"alert-error-fill":"action","alert-error":"action",check:"action","circle-check-fill":"action","circle-check":"action",close:"action","bracket-left":"action","bracket-right":"action",help:"action",info:"action",menu:"action",plus:"action",play:"action",remove:"action",search:"action",warning:"action","arrow-back":"arrow","arrow-downward":"arrow","arrow-forward":"arrow","arrow-insert":"arrow","arrow-outward":"arrow","arrow-return":"arrow","arrow-upward":"arrow","chevron-back":"arrow","chevron-down":"arrow","chevron-forward":"arrow","chevron-up":"arrow","message-fill":"chat",message:"chat",calendar:"eCommerce",cart:"eCommerce","package-fill":"eCommerce",package:"eCommerce","smile-fill":"faces",smile:"faces","circle-dash-fill":"indicators","circle-dash":"indicators","pin-drop":"global",filter:"global",coaching:"medical",labs:"medical",myspan:"medical",optimizations:"medical",protocols:"medical",ruler:"medical",scale:"medical",facebook:"social","heart-fill":"social",heart:"social",instagram:"social","star-fill":"social","star-half":"social","star-outline":"social",star:"social",x:"social","arrow-bold":"bold","close-bold":"bold","dot-bold":"bold","plus-bold":"bold"};exports.EIconName=l;exports.ICON_FOLDERS_MAP=a;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var l=(r=>(r.ALERT_ERROR_FILL="alert-error-fill",r.ALERT_ERROR="alert-error",r.CHECK="check",r.CIRCLE_CHECK_FILL="circle-check-fill",r.CIRCLE_CHECK="circle-check",r.CLOSE="close",r.BRACKET_LEFT="bracket-left",r.BRACKET_RIGHT="bracket-right",r.HELP="help",r.INFO="info",r.MENU="menu",r.PLUS="plus",r.PLAY="play",r.REMOVE="remove",r.SEARCH="search",r.WARNING="warning",r.ARROW_BACK="arrow-back",r.ARROW_DOWNWARD="arrow-downward",r.ARROW_FORWARD="arrow-forward",r.ARROW_FORWARD_THIN="arrow-forward-thin",r.ARROW_INSERT="arrow-insert",r.ARROW_OUTWARD="arrow-outward",r.ARROW_RETURN="arrow-return",r.ARROW_UPWARD="arrow-upward",r.CHEVRON_BACK="chevron-back",r.CHEVRON_DOWN="chevron-down",r.CHEVRON_FORWARD="chevron-forward",r.CHEVRON_UP="chevron-up",r.MESSAGE_FILL="message-fill",r.MESSAGE="message",r.CALENDAR="calendar",r.CART="cart",r.PACKAGE_FILL="package-fill",r.PACKAGE="package",r.SMILE_FILL="smile-fill",r.SMILE="smile",r.CIRCLE_DASH_FILL="circle-dash-fill",r.CIRCLE_DASH="circle-dash",r.PIN_DROP="pin-drop",r.FILTER="filter",r.COACHING="coaching",r.LABS="labs",r.MYSPAN="myspan",r.OPTIMIZATIONS="optimizations",r.PROTOCOLS="protocols",r.RULER="ruler",r.SCALE="scale",r.FACEBOOK="facebook",r.HEART_FILL="heart-fill",r.HEART="heart",r.INSTAGRAM="instagram",r.STAR_FILL="star-fill",r.STAR_HALF="star-half",r.STAR_OUTLINE="star-outline",r.STAR="star",r.X="x",r.ARROW_BOLD="arrow-bold",r.CLOSE_BOLD="close-bold",r.DOT_BOLD="dot-bold",r.PLUS_BOLD="plus-bold",r))(l||{});const a={"alert-error-fill":"action","alert-error":"action",check:"action","circle-check-fill":"action","circle-check":"action",close:"action","bracket-left":"action","bracket-right":"action",help:"action",info:"action",menu:"action",plus:"action",play:"action",remove:"action",search:"action",warning:"action","arrow-back":"arrow","arrow-downward":"arrow","arrow-forward":"arrow","arrow-forward-thin":"arrow","arrow-insert":"arrow","arrow-outward":"arrow","arrow-return":"arrow","arrow-upward":"arrow","chevron-back":"arrow","chevron-down":"arrow","chevron-forward":"arrow","chevron-up":"arrow","message-fill":"chat",message:"chat",calendar:"eCommerce",cart:"eCommerce","package-fill":"eCommerce",package:"eCommerce","smile-fill":"faces",smile:"faces","circle-dash-fill":"indicators","circle-dash":"indicators","pin-drop":"global",filter:"global",coaching:"medical",labs:"medical",myspan:"medical",optimizations:"medical",protocols:"medical",ruler:"medical",scale:"medical",facebook:"social","heart-fill":"social",heart:"social",instagram:"social","star-fill":"social","star-half":"social","star-outline":"social",star:"social",x:"social","arrow-bold":"bold","close-bold":"bold","dot-bold":"bold","plus-bold":"bold"};exports.EIconName=l;exports.ICON_FOLDERS_MAP=a;
|
|
@@ -18,6 +18,7 @@ export declare enum EIconName {
|
|
|
18
18
|
ARROW_BACK = "arrow-back",
|
|
19
19
|
ARROW_DOWNWARD = "arrow-downward",
|
|
20
20
|
ARROW_FORWARD = "arrow-forward",
|
|
21
|
+
ARROW_FORWARD_THIN = "arrow-forward-thin",
|
|
21
22
|
ARROW_INSERT = "arrow-insert",
|
|
22
23
|
ARROW_OUTWARD = "arrow-outward",
|
|
23
24
|
ARROW_RETURN = "arrow-return",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var l = /* @__PURE__ */ ((r) => (r.ALERT_ERROR_FILL = "alert-error-fill", r.ALERT_ERROR = "alert-error", r.CHECK = "check", r.CIRCLE_CHECK_FILL = "circle-check-fill", r.CIRCLE_CHECK = "circle-check", r.CLOSE = "close", r.BRACKET_LEFT = "bracket-left", r.BRACKET_RIGHT = "bracket-right", r.HELP = "help", r.INFO = "info", r.MENU = "menu", r.PLUS = "plus", r.PLAY = "play", r.REMOVE = "remove", r.SEARCH = "search", r.WARNING = "warning", r.ARROW_BACK = "arrow-back", r.ARROW_DOWNWARD = "arrow-downward", r.ARROW_FORWARD = "arrow-forward", r.ARROW_INSERT = "arrow-insert", r.ARROW_OUTWARD = "arrow-outward", r.ARROW_RETURN = "arrow-return", r.ARROW_UPWARD = "arrow-upward", r.CHEVRON_BACK = "chevron-back", r.CHEVRON_DOWN = "chevron-down", r.CHEVRON_FORWARD = "chevron-forward", r.CHEVRON_UP = "chevron-up", r.MESSAGE_FILL = "message-fill", r.MESSAGE = "message", r.CALENDAR = "calendar", r.CART = "cart", r.PACKAGE_FILL = "package-fill", r.PACKAGE = "package", r.SMILE_FILL = "smile-fill", r.SMILE = "smile", r.CIRCLE_DASH_FILL = "circle-dash-fill", r.CIRCLE_DASH = "circle-dash", r.PIN_DROP = "pin-drop", r.FILTER = "filter", r.COACHING = "coaching", r.LABS = "labs", r.MYSPAN = "myspan", r.OPTIMIZATIONS = "optimizations", r.PROTOCOLS = "protocols", r.RULER = "ruler", r.SCALE = "scale", r.FACEBOOK = "facebook", r.HEART_FILL = "heart-fill", r.HEART = "heart", r.INSTAGRAM = "instagram", r.STAR_FILL = "star-fill", r.STAR_HALF = "star-half", r.STAR_OUTLINE = "star-outline", r.STAR = "star", r.X = "x", r.ARROW_BOLD = "arrow-bold", r.CLOSE_BOLD = "close-bold", r.DOT_BOLD = "dot-bold", r.PLUS_BOLD = "plus-bold", r))(l || {});
|
|
1
|
+
var l = /* @__PURE__ */ ((r) => (r.ALERT_ERROR_FILL = "alert-error-fill", r.ALERT_ERROR = "alert-error", r.CHECK = "check", r.CIRCLE_CHECK_FILL = "circle-check-fill", r.CIRCLE_CHECK = "circle-check", r.CLOSE = "close", r.BRACKET_LEFT = "bracket-left", r.BRACKET_RIGHT = "bracket-right", r.HELP = "help", r.INFO = "info", r.MENU = "menu", r.PLUS = "plus", r.PLAY = "play", r.REMOVE = "remove", r.SEARCH = "search", r.WARNING = "warning", r.ARROW_BACK = "arrow-back", r.ARROW_DOWNWARD = "arrow-downward", r.ARROW_FORWARD = "arrow-forward", r.ARROW_FORWARD_THIN = "arrow-forward-thin", r.ARROW_INSERT = "arrow-insert", r.ARROW_OUTWARD = "arrow-outward", r.ARROW_RETURN = "arrow-return", r.ARROW_UPWARD = "arrow-upward", r.CHEVRON_BACK = "chevron-back", r.CHEVRON_DOWN = "chevron-down", r.CHEVRON_FORWARD = "chevron-forward", r.CHEVRON_UP = "chevron-up", r.MESSAGE_FILL = "message-fill", r.MESSAGE = "message", r.CALENDAR = "calendar", r.CART = "cart", r.PACKAGE_FILL = "package-fill", r.PACKAGE = "package", r.SMILE_FILL = "smile-fill", r.SMILE = "smile", r.CIRCLE_DASH_FILL = "circle-dash-fill", r.CIRCLE_DASH = "circle-dash", r.PIN_DROP = "pin-drop", r.FILTER = "filter", r.COACHING = "coaching", r.LABS = "labs", r.MYSPAN = "myspan", r.OPTIMIZATIONS = "optimizations", r.PROTOCOLS = "protocols", r.RULER = "ruler", r.SCALE = "scale", r.FACEBOOK = "facebook", r.HEART_FILL = "heart-fill", r.HEART = "heart", r.INSTAGRAM = "instagram", r.STAR_FILL = "star-fill", r.STAR_HALF = "star-half", r.STAR_OUTLINE = "star-outline", r.STAR = "star", r.X = "x", r.ARROW_BOLD = "arrow-bold", r.CLOSE_BOLD = "close-bold", r.DOT_BOLD = "dot-bold", r.PLUS_BOLD = "plus-bold", r))(l || {});
|
|
2
2
|
const a = {
|
|
3
3
|
"alert-error-fill": "action",
|
|
4
4
|
"alert-error": "action",
|
|
@@ -19,6 +19,7 @@ const a = {
|
|
|
19
19
|
"arrow-back": "arrow",
|
|
20
20
|
"arrow-downward": "arrow",
|
|
21
21
|
"arrow-forward": "arrow",
|
|
22
|
+
"arrow-forward-thin": "arrow",
|
|
22
23
|
"arrow-insert": "arrow",
|
|
23
24
|
"arrow-outward": "arrow",
|
|
24
25
|
"arrow-return": "arrow",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./constants.cjs.js"),r=require("../../icons/action/alert-error-fill.svg.cjs.js"),a=require("../../icons/action/alert-error.svg.cjs.js"),o=require("../../icons/action/check.svg.cjs.js"),c=require("../../icons/action/circle-check-fill.svg.cjs.js"),t=require("../../icons/action/circle-check.svg.cjs.js"),n=require("../../icons/action/close.svg.cjs.js"),u=require("../../icons/action/bracket-left.svg.cjs.js"),E=require("../../icons/action/bracket-right.svg.cjs.js"),l=require("../../icons/action/help.svg.cjs.js"),s=require("../../icons/action/info.svg.cjs.js"),I=require("../../icons/action/menu.svg.cjs.js"),i=require("../../icons/action/play.svg.cjs.js"),N=require("../../icons/action/plus.svg.cjs.js"),d=require("../../icons/action/remove.svg.cjs.js"),m=require("../../icons/action/search.svg.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./constants.cjs.js"),r=require("../../icons/action/alert-error-fill.svg.cjs.js"),a=require("../../icons/action/alert-error.svg.cjs.js"),o=require("../../icons/action/check.svg.cjs.js"),c=require("../../icons/action/circle-check-fill.svg.cjs.js"),t=require("../../icons/action/circle-check.svg.cjs.js"),n=require("../../icons/action/close.svg.cjs.js"),u=require("../../icons/action/bracket-left.svg.cjs.js"),E=require("../../icons/action/bracket-right.svg.cjs.js"),l=require("../../icons/action/help.svg.cjs.js"),s=require("../../icons/action/info.svg.cjs.js"),I=require("../../icons/action/menu.svg.cjs.js"),i=require("../../icons/action/play.svg.cjs.js"),N=require("../../icons/action/plus.svg.cjs.js"),d=require("../../icons/action/remove.svg.cjs.js"),m=require("../../icons/action/search.svg.cjs.js"),R=require("../../icons/action/warning.svg.cjs.js"),f=require("../../icons/arrow/arrow-back.svg.cjs.js"),q=require("../../icons/arrow/arrow-downward.svg.cjs.js"),A=require("../../icons/arrow/arrow-forward.svg.cjs.js"),O=require("../../icons/arrow/arrow-forward-thin.svg.cjs.js"),L=require("../../icons/arrow/arrow-insert.svg.cjs.js"),_=require("../../icons/arrow/arrow-outward.svg.cjs.js"),C=require("../../icons/arrow/arrow-return.svg.cjs.js"),S=require("../../icons/arrow/arrow-upward.svg.cjs.js"),T=require("../../icons/arrow/chevron-back.svg.cjs.js"),F=require("../../icons/arrow/chevron-down.svg.cjs.js"),D=require("../../icons/arrow/chevron-forward.svg.cjs.js"),w=require("../../icons/arrow/chevron-up.svg.cjs.js"),H=require("../../icons/chat/message-fill.svg.cjs.js"),W=require("../../icons/chat/message.svg.cjs.js"),h=require("../../icons/eCommerce/calendar.svg.cjs.js"),B=require("../../icons/eCommerce/cart.svg.cjs.js"),P=require("../../icons/eCommerce/package-fill.svg.cjs.js"),p=require("../../icons/eCommerce/package.svg.cjs.js"),M=require("../../icons/faces/smile-fill.svg.cjs.js"),U=require("../../icons/faces/smile.svg.cjs.js"),g=require("../../icons/indicators/circle-dash-fill.svg.cjs.js"),k=require("../../icons/indicators/circle-dash.svg.cjs.js"),K=require("../../icons/global/pin-drop.svg.cjs.js"),G=require("../../icons/global/filter.svg.cjs.js"),b=require("../../icons/medical/coaching.svg.cjs.js"),v=require("../../icons/medical/labs.svg.cjs.js"),V=require("../../icons/medical/myspan.svg.cjs.js"),y=require("../../icons/medical/optimizations.svg.cjs.js"),Y=require("../../icons/medical/protocols.svg.cjs.js"),j=require("../../icons/medical/ruler.svg.cjs.js"),x=require("../../icons/medical/scale.svg.cjs.js"),z=require("../../icons/social/facebook.svg.cjs.js"),X=require("../../icons/social/heart-fill.svg.cjs.js"),Z=require("../../icons/social/heart.svg.cjs.js"),J=require("../../icons/social/instagram.svg.cjs.js"),Q=require("../../icons/social/star-fill.svg.cjs.js"),$=require("../../icons/social/star-half.svg.cjs.js"),ee=require("../../icons/social/star-outline.svg.cjs.js"),re=require("../../icons/social/star.svg.cjs.js"),ae=require("../../icons/social/x.svg.cjs.js"),oe=require("../../icons/bold/arrow-bold.svg.cjs.js"),ce=require("../../icons/bold/close-bold.svg.cjs.js"),te=require("../../icons/bold/dot-bold.svg.cjs.js"),ne=require("../../icons/bold/plus-bold.svg.cjs.js"),ue={[e.EIconName.ALERT_ERROR_FILL]:r.default,[e.EIconName.ALERT_ERROR]:a.default,[e.EIconName.CHECK]:o.default,[e.EIconName.CIRCLE_CHECK_FILL]:c.default,[e.EIconName.CIRCLE_CHECK]:t.default,[e.EIconName.CLOSE]:n.default,[e.EIconName.BRACKET_LEFT]:u.default,[e.EIconName.BRACKET_RIGHT]:E.default,[e.EIconName.HELP]:l.default,[e.EIconName.INFO]:s.default,[e.EIconName.MENU]:I.default,[e.EIconName.PLAY]:i.default,[e.EIconName.PLUS]:N.default,[e.EIconName.REMOVE]:d.default,[e.EIconName.SEARCH]:m.default,[e.EIconName.WARNING]:R.default,[e.EIconName.ARROW_BACK]:f.default,[e.EIconName.ARROW_DOWNWARD]:q.default,[e.EIconName.ARROW_FORWARD]:A.default,[e.EIconName.ARROW_FORWARD_THIN]:O.default,[e.EIconName.ARROW_INSERT]:L.default,[e.EIconName.ARROW_OUTWARD]:_.default,[e.EIconName.ARROW_RETURN]:C.default,[e.EIconName.ARROW_UPWARD]:S.default,[e.EIconName.CHEVRON_BACK]:T.default,[e.EIconName.CHEVRON_DOWN]:F.default,[e.EIconName.CHEVRON_FORWARD]:D.default,[e.EIconName.CHEVRON_UP]:w.default,[e.EIconName.MESSAGE_FILL]:H.default,[e.EIconName.MESSAGE]:W.default,[e.EIconName.CALENDAR]:h.default,[e.EIconName.CART]:B.default,[e.EIconName.PACKAGE_FILL]:P.default,[e.EIconName.PACKAGE]:p.default,[e.EIconName.SMILE_FILL]:M.default,[e.EIconName.SMILE]:U.default,[e.EIconName.CIRCLE_DASH_FILL]:g.default,[e.EIconName.CIRCLE_DASH]:k.default,[e.EIconName.PIN_DROP]:K.default,[e.EIconName.FILTER]:G.default,[e.EIconName.COACHING]:b.default,[e.EIconName.LABS]:v.default,[e.EIconName.MYSPAN]:V.default,[e.EIconName.OPTIMIZATIONS]:y.default,[e.EIconName.PROTOCOLS]:Y.default,[e.EIconName.RULER]:j.default,[e.EIconName.SCALE]:x.default,[e.EIconName.FACEBOOK]:z.default,[e.EIconName.HEART_FILL]:X.default,[e.EIconName.HEART]:Z.default,[e.EIconName.INSTAGRAM]:J.default,[e.EIconName.STAR_FILL]:Q.default,[e.EIconName.STAR_HALF]:$.default,[e.EIconName.STAR_OUTLINE]:ee.default,[e.EIconName.STAR]:re.default,[e.EIconName.X]:ae.default,[e.EIconName.ARROW_BOLD]:oe.default,[e.EIconName.CLOSE_BOLD]:ce.default,[e.EIconName.DOT_BOLD]:te.default,[e.EIconName.PLUS_BOLD]:ne.default};exports.ICON_COMPONENTS=ue;
|
|
@@ -4,121 +4,123 @@ import m from "../../icons/action/alert-error.svg.es.js";
|
|
|
4
4
|
import S from "../../icons/action/check.svg.es.js";
|
|
5
5
|
import t from "../../icons/action/circle-check-fill.svg.es.js";
|
|
6
6
|
import i from "../../icons/action/circle-check.svg.es.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
7
|
+
import R from "../../icons/action/close.svg.es.js";
|
|
8
|
+
import g from "../../icons/action/bracket-left.svg.es.js";
|
|
9
|
+
import p from "../../icons/action/bracket-right.svg.es.js";
|
|
10
10
|
import v from "../../icons/action/help.svg.es.js";
|
|
11
11
|
import f from "../../icons/action/info.svg.es.js";
|
|
12
12
|
import A from "../../icons/action/menu.svg.es.js";
|
|
13
13
|
import C from "../../icons/action/play.svg.es.js";
|
|
14
14
|
import E from "../../icons/action/plus.svg.es.js";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
15
|
+
import O from "../../icons/action/remove.svg.es.js";
|
|
16
|
+
import L from "../../icons/action/search.svg.es.js";
|
|
17
17
|
import e from "../../icons/action/warning.svg.es.js";
|
|
18
18
|
import l from "../../icons/arrow/arrow-back.svg.es.js";
|
|
19
19
|
import a from "../../icons/arrow/arrow-downward.svg.es.js";
|
|
20
20
|
import _ from "../../icons/arrow/arrow-forward.svg.es.js";
|
|
21
|
-
import I from "../../icons/arrow/arrow-
|
|
22
|
-
import F from "../../icons/arrow/arrow-
|
|
23
|
-
import T from "../../icons/arrow/arrow-
|
|
24
|
-
import N from "../../icons/arrow/arrow-
|
|
25
|
-
import D from "../../icons/arrow/
|
|
26
|
-
import n from "../../icons/arrow/chevron-
|
|
21
|
+
import I from "../../icons/arrow/arrow-forward-thin.svg.es.js";
|
|
22
|
+
import F from "../../icons/arrow/arrow-insert.svg.es.js";
|
|
23
|
+
import T from "../../icons/arrow/arrow-outward.svg.es.js";
|
|
24
|
+
import N from "../../icons/arrow/arrow-return.svg.es.js";
|
|
25
|
+
import D from "../../icons/arrow/arrow-upward.svg.es.js";
|
|
26
|
+
import n from "../../icons/arrow/chevron-back.svg.es.js";
|
|
27
|
+
import H from "../../icons/arrow/chevron-down.svg.es.js";
|
|
27
28
|
import P from "../../icons/arrow/chevron-forward.svg.es.js";
|
|
28
29
|
import c from "../../icons/arrow/chevron-up.svg.es.js";
|
|
29
|
-
import
|
|
30
|
+
import W from "../../icons/chat/message-fill.svg.es.js";
|
|
30
31
|
import B from "../../icons/chat/message.svg.es.js";
|
|
31
32
|
import s from "../../icons/eCommerce/calendar.svg.es.js";
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
33
|
+
import w from "../../icons/eCommerce/cart.svg.es.js";
|
|
34
|
+
import M from "../../icons/eCommerce/package-fill.svg.es.js";
|
|
35
|
+
import h from "../../icons/eCommerce/package.svg.es.js";
|
|
36
|
+
import d from "../../icons/faces/smile-fill.svg.es.js";
|
|
36
37
|
import U from "../../icons/faces/smile.svg.es.js";
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
const
|
|
38
|
+
import k from "../../icons/indicators/circle-dash-fill.svg.es.js";
|
|
39
|
+
import K from "../../icons/indicators/circle-dash.svg.es.js";
|
|
40
|
+
import G from "../../icons/global/pin-drop.svg.es.js";
|
|
41
|
+
import u from "../../icons/global/filter.svg.es.js";
|
|
42
|
+
import V from "../../icons/medical/coaching.svg.es.js";
|
|
43
|
+
import b from "../../icons/medical/labs.svg.es.js";
|
|
44
|
+
import y from "../../icons/medical/myspan.svg.es.js";
|
|
45
|
+
import X from "../../icons/medical/optimizations.svg.es.js";
|
|
46
|
+
import Y from "../../icons/medical/protocols.svg.es.js";
|
|
47
|
+
import x from "../../icons/medical/ruler.svg.es.js";
|
|
48
|
+
import z from "../../icons/medical/scale.svg.es.js";
|
|
49
|
+
import Z from "../../icons/social/facebook.svg.es.js";
|
|
50
|
+
import j from "../../icons/social/heart-fill.svg.es.js";
|
|
51
|
+
import q from "../../icons/social/heart.svg.es.js";
|
|
52
|
+
import J from "../../icons/social/instagram.svg.es.js";
|
|
53
|
+
import Q from "../../icons/social/star-fill.svg.es.js";
|
|
54
|
+
import $ from "../../icons/social/star-half.svg.es.js";
|
|
55
|
+
import rr from "../../icons/social/star-outline.svg.es.js";
|
|
56
|
+
import or from "../../icons/social/star.svg.es.js";
|
|
57
|
+
import mr from "../../icons/social/x.svg.es.js";
|
|
58
|
+
import Sr from "../../icons/bold/arrow-bold.svg.es.js";
|
|
59
|
+
import tr from "../../icons/bold/close-bold.svg.es.js";
|
|
60
|
+
import ir from "../../icons/bold/dot-bold.svg.es.js";
|
|
61
|
+
import Rr from "../../icons/bold/plus-bold.svg.es.js";
|
|
62
|
+
const Oo = {
|
|
62
63
|
[r.ALERT_ERROR_FILL]: o,
|
|
63
64
|
[r.ALERT_ERROR]: m,
|
|
64
65
|
[r.CHECK]: S,
|
|
65
66
|
[r.CIRCLE_CHECK_FILL]: t,
|
|
66
67
|
[r.CIRCLE_CHECK]: i,
|
|
67
|
-
[r.CLOSE]:
|
|
68
|
-
[r.BRACKET_LEFT]:
|
|
69
|
-
[r.BRACKET_RIGHT]:
|
|
68
|
+
[r.CLOSE]: R,
|
|
69
|
+
[r.BRACKET_LEFT]: g,
|
|
70
|
+
[r.BRACKET_RIGHT]: p,
|
|
70
71
|
[r.HELP]: v,
|
|
71
72
|
[r.INFO]: f,
|
|
72
73
|
[r.MENU]: A,
|
|
73
74
|
[r.PLAY]: C,
|
|
74
75
|
[r.PLUS]: E,
|
|
75
|
-
[r.REMOVE]:
|
|
76
|
-
[r.SEARCH]:
|
|
76
|
+
[r.REMOVE]: O,
|
|
77
|
+
[r.SEARCH]: L,
|
|
77
78
|
[r.WARNING]: e,
|
|
78
79
|
[r.ARROW_BACK]: l,
|
|
79
80
|
[r.ARROW_DOWNWARD]: a,
|
|
80
81
|
[r.ARROW_FORWARD]: _,
|
|
81
|
-
[r.
|
|
82
|
-
[r.
|
|
83
|
-
[r.
|
|
84
|
-
[r.
|
|
85
|
-
[r.
|
|
86
|
-
[r.
|
|
82
|
+
[r.ARROW_FORWARD_THIN]: I,
|
|
83
|
+
[r.ARROW_INSERT]: F,
|
|
84
|
+
[r.ARROW_OUTWARD]: T,
|
|
85
|
+
[r.ARROW_RETURN]: N,
|
|
86
|
+
[r.ARROW_UPWARD]: D,
|
|
87
|
+
[r.CHEVRON_BACK]: n,
|
|
88
|
+
[r.CHEVRON_DOWN]: H,
|
|
87
89
|
[r.CHEVRON_FORWARD]: P,
|
|
88
90
|
[r.CHEVRON_UP]: c,
|
|
89
|
-
[r.MESSAGE_FILL]:
|
|
91
|
+
[r.MESSAGE_FILL]: W,
|
|
90
92
|
[r.MESSAGE]: B,
|
|
91
93
|
[r.CALENDAR]: s,
|
|
92
|
-
[r.CART]:
|
|
93
|
-
[r.PACKAGE_FILL]:
|
|
94
|
-
[r.PACKAGE]:
|
|
95
|
-
[r.SMILE_FILL]:
|
|
94
|
+
[r.CART]: w,
|
|
95
|
+
[r.PACKAGE_FILL]: M,
|
|
96
|
+
[r.PACKAGE]: h,
|
|
97
|
+
[r.SMILE_FILL]: d,
|
|
96
98
|
[r.SMILE]: U,
|
|
97
|
-
[r.CIRCLE_DASH_FILL]:
|
|
98
|
-
[r.CIRCLE_DASH]:
|
|
99
|
-
[r.PIN_DROP]:
|
|
100
|
-
[r.FILTER]:
|
|
101
|
-
[r.COACHING]:
|
|
102
|
-
[r.LABS]:
|
|
103
|
-
[r.MYSPAN]:
|
|
104
|
-
[r.OPTIMIZATIONS]:
|
|
105
|
-
[r.PROTOCOLS]:
|
|
106
|
-
[r.RULER]:
|
|
107
|
-
[r.SCALE]:
|
|
108
|
-
[r.FACEBOOK]:
|
|
109
|
-
[r.HEART_FILL]:
|
|
110
|
-
[r.HEART]:
|
|
111
|
-
[r.INSTAGRAM]:
|
|
112
|
-
[r.STAR_FILL]:
|
|
113
|
-
[r.STAR_HALF]:
|
|
114
|
-
[r.STAR_OUTLINE]:
|
|
115
|
-
[r.STAR]:
|
|
116
|
-
[r.X]:
|
|
117
|
-
[r.ARROW_BOLD]:
|
|
118
|
-
[r.CLOSE_BOLD]:
|
|
119
|
-
[r.DOT_BOLD]:
|
|
120
|
-
[r.PLUS_BOLD]:
|
|
99
|
+
[r.CIRCLE_DASH_FILL]: k,
|
|
100
|
+
[r.CIRCLE_DASH]: K,
|
|
101
|
+
[r.PIN_DROP]: G,
|
|
102
|
+
[r.FILTER]: u,
|
|
103
|
+
[r.COACHING]: V,
|
|
104
|
+
[r.LABS]: b,
|
|
105
|
+
[r.MYSPAN]: y,
|
|
106
|
+
[r.OPTIMIZATIONS]: X,
|
|
107
|
+
[r.PROTOCOLS]: Y,
|
|
108
|
+
[r.RULER]: x,
|
|
109
|
+
[r.SCALE]: z,
|
|
110
|
+
[r.FACEBOOK]: Z,
|
|
111
|
+
[r.HEART_FILL]: j,
|
|
112
|
+
[r.HEART]: q,
|
|
113
|
+
[r.INSTAGRAM]: J,
|
|
114
|
+
[r.STAR_FILL]: Q,
|
|
115
|
+
[r.STAR_HALF]: $,
|
|
116
|
+
[r.STAR_OUTLINE]: rr,
|
|
117
|
+
[r.STAR]: or,
|
|
118
|
+
[r.X]: mr,
|
|
119
|
+
[r.ARROW_BOLD]: Sr,
|
|
120
|
+
[r.CLOSE_BOLD]: tr,
|
|
121
|
+
[r.DOT_BOLD]: ir,
|
|
122
|
+
[r.PLUS_BOLD]: Rr
|
|
121
123
|
};
|
|
122
124
|
export {
|
|
123
|
-
|
|
125
|
+
Oo as ICON_COMPONENTS
|
|
124
126
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),l=require("../Typography/Typography.cjs.js"),c=require("../Icon/Icon.cjs.js"),m=require("../Icon/constants.cjs.js"),i=require("./assets/program_card_bg.png.cjs.js"),o=require("./programCard.module.css.cjs.js"),s=a=>{if(a.type==="coming_soon")return{title:{label:a.label||"Coming Soon",variant:"headingLg",mobileVariant:"headingXxs"}};if(a.type==="active"){const{label:e,image:t,link:r}=a;return{title:{label:e,variant:"displayXs",mobileVariant:"headingSm"},image:t||i.default,link:r}}if(a.type==="rounded"){const{label:e,image:t,link:r}=a;return{title:{label:e,variant:"displayXs",mobileVariant:"headingSm"},image:t||i.default,withArrow:!0,link:r}}return null};function u(a){const e=s(a);if(!e)return null;const t=e.link?"a":"div";return n.jsxs(t,{href:e.link||"",className:o.default.card,"data-type":a.type,style:{backgroundImage:e.image?`url(${e.image})`:void 0},children:[n.jsx(l.Typography,{as:"p",defaultVariant:e.title.variant,mobileVariant:e.title.mobileVariant,children:e.title.label}),e.withArrow&&n.jsx(c.Icon,{name:m.EIconName.ARROW_FORWARD_THIN,className:o.default.arrow})]})}exports.ProgramCard=u;
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
type EmptyCardProps = {
|
|
2
2
|
type: 'coming_soon';
|
|
3
3
|
label?: string;
|
|
4
|
+
withArrow?: boolean;
|
|
4
5
|
};
|
|
5
6
|
type CardProps = {
|
|
6
7
|
type: 'active';
|
|
7
8
|
label: string;
|
|
8
9
|
image?: string | null;
|
|
9
10
|
link?: string | null;
|
|
11
|
+
withArrow?: boolean;
|
|
10
12
|
};
|
|
11
|
-
|
|
13
|
+
type RoundedCardProps = {
|
|
14
|
+
type: 'rounded';
|
|
15
|
+
label: string;
|
|
16
|
+
image?: string | null;
|
|
17
|
+
link?: string | null;
|
|
18
|
+
withArrow?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type ProgramCardProps = EmptyCardProps | CardProps | RoundedCardProps;
|
|
12
21
|
export declare function ProgramCard(props: ProgramCardProps): import("react/jsx-runtime").JSX.Element | null;
|
|
13
22
|
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Typography as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as o } from "../Typography/Typography.es.js";
|
|
3
|
+
import { Icon as g } from "../Icon/Icon.es.js";
|
|
4
|
+
import { EIconName as d } from "../Icon/constants.es.js";
|
|
5
|
+
import n from "./assets/program_card_bg.png.es.js";
|
|
6
|
+
import l from "./programCard.module.css.es.js";
|
|
7
|
+
const s = (i) => {
|
|
6
8
|
if (i.type === "coming_soon")
|
|
7
9
|
return {
|
|
8
10
|
title: {
|
|
@@ -12,37 +14,53 @@ const o = (i) => {
|
|
|
12
14
|
}
|
|
13
15
|
};
|
|
14
16
|
if (i.type === "active") {
|
|
15
|
-
const { label: a, image: t, link:
|
|
17
|
+
const { label: a, image: t, link: e } = i;
|
|
16
18
|
return {
|
|
17
19
|
title: {
|
|
18
20
|
label: a,
|
|
19
21
|
variant: "displayXs",
|
|
20
22
|
mobileVariant: "headingSm"
|
|
21
23
|
},
|
|
22
|
-
image: t ||
|
|
23
|
-
link:
|
|
24
|
+
image: t || n,
|
|
25
|
+
link: e
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
if (i.type === "rounded") {
|
|
29
|
+
const { label: a, image: t, link: e } = i;
|
|
30
|
+
return {
|
|
31
|
+
title: {
|
|
32
|
+
label: a,
|
|
33
|
+
variant: "displayXs",
|
|
34
|
+
mobileVariant: "headingSm"
|
|
35
|
+
},
|
|
36
|
+
image: t || n,
|
|
37
|
+
withArrow: !0,
|
|
38
|
+
link: e
|
|
24
39
|
};
|
|
25
40
|
}
|
|
26
41
|
return null;
|
|
27
42
|
};
|
|
28
|
-
function
|
|
29
|
-
const a =
|
|
43
|
+
function p(i) {
|
|
44
|
+
const a = s(i);
|
|
30
45
|
if (!a)
|
|
31
46
|
return null;
|
|
32
47
|
const t = a.link ? "a" : "div";
|
|
33
|
-
return /* @__PURE__ */
|
|
48
|
+
return /* @__PURE__ */ m(
|
|
34
49
|
t,
|
|
35
50
|
{
|
|
36
51
|
href: a.link || "",
|
|
37
|
-
className:
|
|
52
|
+
className: l.card,
|
|
38
53
|
"data-type": i.type,
|
|
39
54
|
style: {
|
|
40
55
|
backgroundImage: a.image ? `url(${a.image})` : void 0
|
|
41
56
|
},
|
|
42
|
-
children:
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ r(o, { as: "p", defaultVariant: a.title.variant, mobileVariant: a.title.mobileVariant, children: a.title.label }),
|
|
59
|
+
a.withArrow && /* @__PURE__ */ r(g, { name: d.ARROW_FORWARD_THIN, className: l.arrow })
|
|
60
|
+
]
|
|
43
61
|
}
|
|
44
62
|
);
|
|
45
63
|
}
|
|
46
64
|
export {
|
|
47
|
-
|
|
65
|
+
p as ProgramCard
|
|
48
66
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r="programCard-module__card___PuYN2",a="programCard-module__arrow___kP19I",e={card:r,arrow:a};exports.arrow=a;exports.card=r;exports.default=e;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
const
|
|
2
|
-
card:
|
|
1
|
+
const r = "programCard-module__card___PuYN2", a = "programCard-module__arrow___kP19I", o = {
|
|
2
|
+
card: r,
|
|
3
|
+
arrow: a
|
|
3
4
|
};
|
|
4
5
|
export {
|
|
5
|
-
a as
|
|
6
|
-
r as
|
|
6
|
+
a as arrow,
|
|
7
|
+
r as card,
|
|
8
|
+
o as default
|
|
7
9
|
};
|