@zenpatient-org/healthspan-marketing-ui 0.1.19 → 0.1.21
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/README.md +18 -16
- package/dist/_virtual/Popover.cjs.js +1 -0
- package/dist/_virtual/Popover.es.js +5 -0
- package/dist/_virtual/Popover.es2.js +4 -0
- package/dist/_virtual/{jsx-runtime.cjs2.js → PopoverPortal.cjs.js} +1 -1
- package/dist/_virtual/PopoverPortal.es.js +4 -0
- package/dist/_virtual/useArrowContainer.cjs.js +1 -0
- package/dist/_virtual/useArrowContainer.es.js +4 -0
- package/dist/_virtual/useElementRef.cjs.js +1 -0
- package/dist/_virtual/useHandlePrevValues.cjs.js +1 -0
- package/dist/_virtual/useHandlePrevValues.es.js +4 -0
- package/dist/_virtual/useMemoizedArray.cjs.js +1 -0
- package/dist/_virtual/useMemoizedArray.es.js +4 -0
- package/dist/_virtual/usePopover.cjs.js +1 -0
- package/dist/_virtual/usePopover.es.js +4 -0
- package/dist/_virtual/util.cjs.js +1 -0
- package/dist/_virtual/util.es.js +4 -0
- package/dist/components/Benefit/Benefit.cjs.js +1 -0
- package/dist/components/Benefit/Benefit.es.js +13 -0
- package/dist/components/Benefit/benefit.module.css.cjs.js +1 -0
- package/dist/components/Benefit/benefit.module.css.es.js +9 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +13 -13
- package/dist/components/Callback/Callback.cjs.js +1 -1
- package/dist/components/Callback/Callback.es.js +34 -35
- package/dist/components/ComplexTooltip/ComplexTooltip.cjs.js +1 -0
- package/dist/components/ComplexTooltip/ComplexTooltip.es.js +70 -0
- package/dist/components/ComplexTooltip/complexTooltip.module.css.cjs.js +1 -0
- package/dist/components/ComplexTooltip/complexTooltip.module.css.es.js +17 -0
- package/dist/components/ContentTabs/ContentTabs.cjs.js +1 -1
- package/dist/components/ContentTabs/ContentTabs.es.js +19 -19
- package/dist/components/Cursor/Cursor.cjs.js +1 -0
- package/dist/components/Cursor/Cursor.es.js +9 -0
- package/dist/components/Cursor/components/ClientCursor.cjs.js +1 -0
- package/dist/components/Cursor/components/ClientCursor.es.js +42 -0
- package/dist/components/Cursor/components/ServerCursor.cjs.js +1 -0
- package/dist/components/Cursor/components/ServerCursor.es.js +4 -0
- package/dist/components/Cursor/cursor.module.css.cjs.js +1 -0
- package/dist/components/Cursor/cursor.module.css.es.js +11 -0
- package/dist/components/FilterMenu/FilterMenu.cjs.js +1 -1
- package/dist/components/FilterMenu/FilterMenu.es.js +18 -17
- package/dist/components/HighlightedTitle/HighlightedTitle.cjs.js +1 -1
- package/dist/components/HighlightedTitle/HighlightedTitle.d.ts +1 -1
- package/dist/components/HighlightedTitle/HighlightedTitle.es.js +22 -33
- package/dist/components/Icon/Icon.cjs.js +1 -1
- package/dist/components/Icon/Icon.es.js +7 -16
- package/dist/components/Icon/iconsMap.cjs.js +1 -0
- package/dist/components/Icon/iconsMap.d.ts +4 -0
- package/dist/components/Icon/iconsMap.es.js +110 -0
- package/dist/components/IconButton/IconButton.cjs.js +1 -1
- package/dist/components/IconButton/IconButton.es.js +12 -13
- package/dist/components/InfiniteScroll/InfiniteScroll.cjs.js +1 -1
- package/dist/components/InfiniteScroll/InfiniteScroll.es.js +34 -33
- package/dist/components/Label/Label.cjs.js +1 -1
- package/dist/components/Label/Label.es.js +8 -8
- package/dist/components/ProductGallery/ProductGallery.cjs.js +1 -1
- package/dist/components/ProductGallery/ProductGallery.es.js +46 -45
- package/dist/components/ProductGalleryCard/ProductGalleryCard.cjs.js +1 -1
- package/dist/components/ProductGalleryCard/ProductGalleryCard.es.js +15 -15
- package/dist/components/ProductListing/ProductListing.cjs.js +1 -0
- package/dist/components/ProductListing/ProductListing.es.js +30 -0
- package/dist/components/ProductListing/productListing.module.css.cjs.js +1 -0
- package/dist/components/ProductListing/productListing.module.css.es.js +29 -0
- package/dist/components/ProgramCard/ProgramCard.cjs.js +1 -0
- package/dist/components/ProgramCard/ProgramCard.es.js +48 -0
- package/dist/components/ProgramCard/assets/program_card_bg.png.cjs.js +1 -0
- package/dist/components/ProgramCard/assets/program_card_bg.png.es.js +4 -0
- package/dist/components/ProgramCard/programCard.module.css.cjs.js +1 -0
- package/dist/components/ProgramCard/programCard.module.css.es.js +7 -0
- package/dist/components/ProgressButton/ProgressButton.cjs.js +1 -1
- package/dist/components/ProgressButton/ProgressButton.es.js +18 -19
- package/dist/components/StepsCarousel/StepsCarousel.cjs.js +1 -1
- package/dist/components/StepsCarousel/StepsCarousel.es.js +40 -39
- package/dist/components/StudyGridCard/StudyGridCard.cjs.js +1 -0
- package/dist/components/StudyGridCard/StudyGridCard.es.js +61 -0
- package/dist/components/StudyGridCard/studyGridCard.module.css.cjs.js +1 -0
- package/dist/components/StudyGridCard/studyGridCard.module.css.es.js +19 -0
- package/dist/components/Tabs/Tabs.cjs.js +1 -1
- package/dist/components/Tabs/Tabs.es.js +20 -20
- package/dist/components/Tabs/TabsWithFade.cjs.js +1 -1
- package/dist/components/Tabs/TabsWithFade.es.js +16 -15
- package/dist/components/Tag/Tag.cjs.js +1 -1
- package/dist/components/Tag/Tag.es.js +15 -15
- package/dist/components/TextButton/TextButton.cjs.js +1 -1
- package/dist/components/TextButton/TextButton.es.js +18 -18
- package/dist/components/TypeBadge/TypeBadge.cjs.js +1 -1
- package/dist/components/TypeBadge/TypeBadge.es.js +4 -4
- package/dist/components/Typography/Typography.cjs.js +1 -1
- package/dist/components/Typography/Typography.es.js +9 -9
- package/dist/components/index.d.ts +0 -27
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.es.js +2 -57
- package/dist/modules/Callback/Callback.cjs.js +1 -0
- package/dist/modules/Callback/Callback.d.ts +1 -1
- package/dist/modules/Callback/Callback.es.js +36 -0
- package/dist/modules/Callback/callback.module.css.cjs.js +1 -0
- package/dist/modules/Callback/callback.module.css.es.js +13 -0
- package/dist/modules/Comparison/Comparison.cjs.js +1 -0
- package/dist/modules/Comparison/Comparison.es.js +86 -0
- package/dist/modules/Comparison/assets/company-logo.svg.cjs.js +1 -0
- package/dist/modules/Comparison/assets/company-logo.svg.es.js +5 -0
- package/dist/modules/Comparison/comparison.module.css.cjs.js +1 -0
- package/dist/modules/Comparison/comparison.module.css.es.js +39 -0
- package/dist/modules/Comparison/components/ComparisonMobileView/ComparisonMobileView.cjs.js +1 -0
- package/dist/modules/Comparison/components/ComparisonMobileView/ComparisonMobileView.es.js +42 -0
- package/dist/modules/Comparison/components/ComparisonMobileView/comparisonMobileView.module.css.cjs.js +1 -0
- package/dist/modules/Comparison/components/ComparisonMobileView/comparisonMobileView.module.css.es.js +27 -0
- package/dist/modules/Comparison/utils.cjs.js +1 -0
- package/dist/modules/Comparison/utils.es.js +4 -0
- package/dist/modules/FeaturedIn/FeaturedIn.cjs.js +1 -0
- package/dist/modules/FeaturedIn/FeaturedIn.es.js +54 -0
- package/dist/modules/FeaturedIn/featuredIn.module.css.cjs.js +1 -0
- package/dist/modules/FeaturedIn/featuredIn.module.css.es.js +37 -0
- package/dist/modules/FeaturesGallery/FeaturesGallery.cjs.js +1 -0
- package/dist/modules/FeaturesGallery/FeaturesGallery.es.js +22 -0
- package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.cjs.js +1 -0
- package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.es.js +29 -0
- package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.module.css.cjs.js +1 -0
- package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.module.css.es.js +21 -0
- package/dist/modules/FeaturesGallery/featuresGallery.module.css.cjs.js +1 -0
- package/dist/modules/FeaturesGallery/featuresGallery.module.css.es.js +21 -0
- package/dist/modules/FollowTheScience/FollowTheScience.cjs.js +1 -0
- package/dist/modules/FollowTheScience/FollowTheScience.es.js +73 -0
- package/dist/modules/FollowTheScience/followTheScience.module.css.cjs.js +1 -0
- package/dist/modules/FollowTheScience/followTheScience.module.css.es.js +15 -0
- package/dist/modules/HowItWorks/HowItWorks.cjs.js +1 -0
- package/dist/modules/HowItWorks/HowItWorks.es.js +16 -0
- package/dist/modules/HowItWorks/components/Content/Content.cjs.js +1 -0
- package/dist/modules/HowItWorks/components/Content/Content.es.js +65 -0
- package/dist/modules/HowItWorks/components/Content/content.module.css.cjs.js +1 -0
- package/dist/modules/HowItWorks/components/Content/content.module.css.es.js +21 -0
- package/dist/modules/HowItWorks/howItWorks.module.css.cjs.js +1 -0
- package/dist/modules/HowItWorks/howItWorks.module.css.es.js +13 -0
- package/dist/modules/OptimalHealth/OptimalHealth.cjs.js +1 -0
- package/dist/modules/OptimalHealth/OptimalHealth.es.js +19 -0
- package/dist/modules/OptimalHealth/components/ClockImages/ClockImages.cjs.js +1 -0
- package/dist/modules/OptimalHealth/components/ClockImages/ClockImages.es.js +37 -0
- package/dist/modules/OptimalHealth/components/ClockImages/clockImages.module.css.cjs.js +1 -0
- package/dist/modules/OptimalHealth/components/ClockImages/clockImages.module.css.es.js +15 -0
- package/dist/modules/OptimalHealth/components/ClockImages/hooks.cjs.js +1 -0
- package/dist/modules/OptimalHealth/components/ClockImages/hooks.es.js +13 -0
- package/dist/modules/OptimalHealth/optimalHealth.module.css.cjs.js +1 -0
- package/dist/modules/OptimalHealth/optimalHealth.module.css.es.js +19 -0
- package/dist/modules/OurProcess/OurProcess.cjs.js +1 -0
- package/dist/modules/OurProcess/OurProcess.d.ts +1 -1
- package/dist/modules/OurProcess/OurProcess.es.js +15 -0
- package/dist/modules/OurProcess/ourProcess.module.css.cjs.js +1 -0
- package/dist/modules/OurProcess/ourProcess.module.css.es.js +11 -0
- package/dist/modules/ProductsDisplay/ProductsDisplay.cjs.js +1 -1
- package/dist/modules/ProductsDisplay/ProductsDisplay.es.js +17 -22
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.cjs.js +1 -1
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.d.ts +1 -1
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.es.js +9 -19
- package/dist/modules/ProductsDisplay/types.d.ts +1 -1
- package/dist/modules/ProductsDisplay/useProductsData.cjs.js +1 -1
- package/dist/modules/ProductsDisplay/useProductsData.d.ts +2 -1
- package/dist/modules/ProductsDisplay/useProductsData.es.js +8 -7
- package/dist/modules/Studies/Studies.cjs.js +1 -0
- package/dist/modules/Studies/Studies.es.js +26 -0
- package/dist/modules/Studies/studies.module.css.cjs.js +1 -0
- package/dist/modules/Studies/studies.module.css.es.js +15 -0
- package/dist/modules/TargetedPrograms/TargetedPrograms.cjs.js +1 -0
- package/dist/modules/TargetedPrograms/TargetedPrograms.es.js +67 -0
- package/dist/modules/TargetedPrograms/targetedPrograms.module.css.cjs.js +1 -0
- package/dist/modules/TargetedPrograms/targetedPrograms.module.css.es.js +15 -0
- package/dist/modules/TotalCare/TotalCare.cjs.js +1 -1
- package/dist/modules/TotalCare/TotalCare.d.ts +1 -1
- package/dist/modules/TotalCare/TotalCare.es.js +18 -27
- package/dist/modules/YourProtocol/YourProtocol.cjs.js +1 -1
- package/dist/modules/YourProtocol/YourProtocol.es.js +19 -30
- package/dist/modules/YourProtocol/components/ProtocolTags/ProtocolTags.cjs.js +1 -1
- package/dist/modules/YourProtocol/components/ProtocolTags/ProtocolTags.es.js +19 -27
- package/dist/modules/index.d.ts +0 -3
- package/dist/node_modules/react-tiny-popover/dist/ArrowContainer.cjs.js +1 -0
- package/dist/node_modules/react-tiny-popover/dist/ArrowContainer.es.js +37 -0
- package/dist/node_modules/react-tiny-popover/dist/Popover.cjs.js +1 -0
- package/dist/node_modules/react-tiny-popover/dist/Popover.es.js +147 -0
- package/dist/node_modules/react-tiny-popover/dist/PopoverPortal.cjs.js +1 -0
- package/dist/node_modules/react-tiny-popover/dist/PopoverPortal.es.js +20 -0
- package/dist/node_modules/react-tiny-popover/dist/useArrowContainer.cjs.js +1 -0
- package/dist/node_modules/react-tiny-popover/dist/useArrowContainer.es.js +86 -0
- package/dist/node_modules/react-tiny-popover/dist/useElementRef.cjs.js +1 -0
- package/dist/node_modules/react-tiny-popover/dist/useElementRef.es.js +22 -0
- package/dist/node_modules/react-tiny-popover/dist/useHandlePrevValues.cjs.js +1 -0
- package/dist/node_modules/react-tiny-popover/dist/useHandlePrevValues.es.js +34 -0
- package/dist/node_modules/react-tiny-popover/dist/useMemoizedArray.cjs.js +1 -0
- package/dist/node_modules/react-tiny-popover/dist/useMemoizedArray.es.js +24 -0
- package/dist/node_modules/react-tiny-popover/dist/usePopover.cjs.js +1 -0
- package/dist/node_modules/react-tiny-popover/dist/usePopover.es.js +140 -0
- package/dist/node_modules/react-tiny-popover/dist/util.cjs.js +1 -0
- package/dist/node_modules/react-tiny-popover/dist/util.es.js +81 -0
- package/dist/utils/index.d.ts +0 -4
- package/dist/utils/isHsIcon/isHsIcon.cjs.js +1 -0
- package/dist/utils/{isHsIcon.es.js → isHsIcon/isHsIcon.es.js} +1 -1
- package/package.json +206 -5
- package/dist/_virtual/dynamic-import-helper.cjs.js +0 -1
- package/dist/_virtual/dynamic-import-helper.es.js +0 -16
- package/dist/_virtual/jsx-runtime.cjs.js +0 -1
- package/dist/_virtual/jsx-runtime.es.js +0 -5
- package/dist/_virtual/jsx-runtime.es2.js +0 -4
- package/dist/icons/map/pin-drop.svg.cjs.js +0 -1
- package/dist/icons/map/pin-drop.svg.es.js +0 -5
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js +0 -14
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +0 -247
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs.js +0 -9
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js +0 -35
- package/dist/node_modules/react/jsx-runtime.cjs.js +0 -1
- package/dist/node_modules/react/jsx-runtime.es.js +0 -10
- package/dist/utils/isHsIcon.cjs.js +0 -1
- package/dist/utils.cjs.js +0 -1
- package/dist/utils.es.js +0 -10
- /package/dist/_virtual/{react-jsx-runtime.development.cjs.js → ArrowContainer.cjs.js} +0 -0
- /package/dist/_virtual/{react-jsx-runtime.production.es.js → ArrowContainer.es.js} +0 -0
- /package/dist/_virtual/{react-jsx-runtime.production.cjs.js → Popover.cjs2.js} +0 -0
- /package/dist/_virtual/{react-jsx-runtime.development.es.js → useElementRef.es.js} +0 -0
- /package/dist/{utils → lib}/useSwiper.d.ts +0 -0
- /package/dist/utils/{cn.cjs.js → cn/cn.cjs.js} +0 -0
- /package/dist/utils/{cn.es.js → cn/cn.es.js} +0 -0
- /package/dist/utils/{formatUnits.cjs.js → formatUnits/formatUnits.cjs.js} +0 -0
- /package/dist/utils/{formatUnits.es.js → formatUnits/formatUnits.es.js} +0 -0
- /package/dist/utils/{useSwiper.cjs.js → useSwiper/useSwiper.cjs.js} +0 -0
- /package/dist/utils/{useSwiper.es.js → useSwiper/useSwiper.es.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="programCard-module__card___PuYN2",r={card:e};exports.card=e;exports.default=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),c=require("../../utils/cn/cn.cjs.js"),l=require("../Icon/Icon.cjs.js"),i=require("../Icon/constants.cjs.js"),e=require("./progressButton.module.css.cjs.js"),r=({orientation:n,icon:o,disabled:s=!1,onClick:a})=>t.jsx("button",{className:c.cn(e.default.button,{[e.default.buttonLeft]:n==="left",[e.default.buttonRight]:n==="right"}),disabled:s,onClick:a,children:t.jsx("div",{className:e.default.iconWrap,children:t.jsx(l.Icon,{name:o,className:e.default.icon})})}),d=({invert:n=!1,left:o,right:s})=>t.jsxs("div",{className:c.cn(e.default.root,{[e.default.inverted]:n}),children:[t.jsx(r,{orientation:"left",icon:i.EIconName.ARROW_BACK,disabled:o.disabled,onClick:o.onClick}),t.jsx("div",{className:c.cn(e.default.divider,{[e.default.inverted]:n})}),t.jsx(r,{orientation:"right",icon:i.EIconName.ARROW_FORWARD,disabled:s.disabled,onClick:s.onClick})]});exports.ProgressButton=d;
|
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { cn as
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import { Icon as l } from "../Icon/Icon.es.js";
|
|
1
|
+
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { cn as r } from "../../utils/cn/cn.es.js";
|
|
3
|
+
import { Icon as d } from "../Icon/Icon.es.js";
|
|
4
|
+
import { EIconName as s } from "../Icon/constants.es.js";
|
|
6
5
|
import o from "./progressButton.module.css.es.js";
|
|
7
|
-
const
|
|
6
|
+
const c = ({ orientation: i, icon: e, disabled: n = !1, onClick: a }) => /* @__PURE__ */ t(
|
|
8
7
|
"button",
|
|
9
8
|
{
|
|
10
|
-
className:
|
|
11
|
-
[o.buttonLeft]:
|
|
12
|
-
[o.buttonRight]:
|
|
9
|
+
className: r(o.button, {
|
|
10
|
+
[o.buttonLeft]: i === "left",
|
|
11
|
+
[o.buttonRight]: i === "right"
|
|
13
12
|
}),
|
|
14
|
-
disabled:
|
|
15
|
-
onClick:
|
|
16
|
-
children: /* @__PURE__ */ t
|
|
13
|
+
disabled: n,
|
|
14
|
+
onClick: a,
|
|
15
|
+
children: /* @__PURE__ */ t("div", { className: o.iconWrap, children: /* @__PURE__ */ t(d, { name: e, className: o.icon }) })
|
|
17
16
|
}
|
|
18
|
-
),
|
|
17
|
+
), R = ({ invert: i = !1, left: e, right: n }) => /* @__PURE__ */ l(
|
|
19
18
|
"div",
|
|
20
19
|
{
|
|
21
|
-
className:
|
|
22
|
-
[o.inverted]:
|
|
20
|
+
className: r(o.root, {
|
|
21
|
+
[o.inverted]: i
|
|
23
22
|
}),
|
|
24
23
|
children: [
|
|
25
|
-
/* @__PURE__ */ t
|
|
26
|
-
/* @__PURE__ */ t
|
|
27
|
-
/* @__PURE__ */ t
|
|
24
|
+
/* @__PURE__ */ t(c, { orientation: "left", icon: s.ARROW_BACK, disabled: e.disabled, onClick: e.onClick }),
|
|
25
|
+
/* @__PURE__ */ t("div", { className: r(o.divider, { [o.inverted]: i }) }),
|
|
26
|
+
/* @__PURE__ */ t(c, { orientation: "right", icon: s.ARROW_FORWARD, disabled: n.disabled, onClick: n.onClick })
|
|
28
27
|
]
|
|
29
28
|
}
|
|
30
29
|
);
|
|
31
30
|
export {
|
|
32
|
-
|
|
31
|
+
R as ProgressButton
|
|
33
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("react"),d=require("../../utils/cn/cn.cjs.js"),m=require("../Label/Label.cjs.js"),h=require("../ProgressButton/ProgressButton.cjs.js"),u=require("../Typography/Typography.cjs.js"),t=require("./stepsCarousel.module.css.cjs.js"),b=({steps:p,colorScheme:l})=>{const[r,i]=o.useState(0),n=o.useRef([]);return o.useEffect(()=>{var a;n.current[r]&&((a=n.current[r])==null||a.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}))},[r]),e.jsxs("div",{className:t.default.root,"data-scheme":l,children:[e.jsx("div",{className:t.default.stepsContainer,"data-scheme":l,children:p.map((a,s)=>{const c=r===s;return e.jsxs("button",{ref:f=>{n.current.splice(s,1,f)},className:d.cn(t.default.card,c&&t.default.cardActive),onClick:()=>i(s),type:"button",children:[e.jsx("div",{className:d.cn(t.default.imageWrapper,c&&t.default.imageWrapperActive),children:e.jsx("img",{src:a.image,alt:a.title,className:t.default.image})}),e.jsx("div",{className:t.default.stepLabel,children:c?e.jsxs(e.Fragment,{children:[e.jsxs(m.Label,{size:"lg",className:t.default.desktop,color:l==="dark"?"white":"black",children:["Step ",s+1]}),e.jsxs(m.Label,{size:"sm",className:t.default.mobile,color:l==="dark"?"white":"black",children:["Step ",s+1]})]}):e.jsxs(u.Typography,{defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,className:t.default.labelText,children:["Step ",s+1]})}),e.jsxs("div",{className:t.default.textContainer,children:[e.jsx(u.Typography,{as:"h3",defaultVariant:"headingXs",mobileVariant:"headingXxs",children:a.title}),a.description&&e.jsx(u.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",className:t.default.cardDescription,children:a.description})]})]},`step-${s}`)})}),e.jsx("div",{className:d.cn(t.default.mobile,t.default.progressButtonContainer),children:e.jsx(h.ProgressButton,{invert:l==="dark",left:{disabled:r<=0,onClick:()=>i(a=>a-1)},right:{disabled:r>=p.length-1,onClick:()=>i(a=>a+1)}})})]})};exports.StepsCarousel=b;
|
|
@@ -1,71 +1,72 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as i, jsx as t, Fragment as u } from "react/jsx-runtime";
|
|
3
|
+
import { useState as f, useRef as g, useEffect as v } from "react";
|
|
4
|
+
import { cn as m } from "../../utils/cn/cn.es.js";
|
|
5
|
+
import { Label as h } from "../Label/Label.es.js";
|
|
6
|
+
import { ProgressButton as N } from "../ProgressButton/ProgressButton.es.js";
|
|
7
|
+
import { Typography as d } from "../Typography/Typography.es.js";
|
|
8
|
+
import e from "./stepsCarousel.module.css.es.js";
|
|
9
|
+
const X = ({ steps: p, colorScheme: l }) => {
|
|
10
|
+
const [s, c] = f(0), n = g([]);
|
|
11
|
+
return v(() => {
|
|
11
12
|
var a;
|
|
12
|
-
|
|
13
|
+
n.current[s] && ((a = n.current[s]) == null || a.scrollIntoView({
|
|
13
14
|
behavior: "smooth",
|
|
14
15
|
inline: "center",
|
|
15
16
|
block: "nearest"
|
|
16
17
|
}));
|
|
17
|
-
}, [
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
const
|
|
20
|
-
return /* @__PURE__ */
|
|
18
|
+
}, [s]), /* @__PURE__ */ i("div", { className: e.root, "data-scheme": l, children: [
|
|
19
|
+
/* @__PURE__ */ t("div", { className: e.stepsContainer, "data-scheme": l, children: p.map((a, r) => {
|
|
20
|
+
const o = s === r;
|
|
21
|
+
return /* @__PURE__ */ i(
|
|
21
22
|
"button",
|
|
22
23
|
{
|
|
23
|
-
ref: (
|
|
24
|
-
|
|
24
|
+
ref: (b) => {
|
|
25
|
+
n.current.splice(r, 1, b);
|
|
25
26
|
},
|
|
26
|
-
className:
|
|
27
|
-
onClick: () =>
|
|
27
|
+
className: m(e.card, o && e.cardActive),
|
|
28
|
+
onClick: () => c(r),
|
|
28
29
|
type: "button",
|
|
29
30
|
children: [
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ t("div", { className: m(e.imageWrapper, o && e.imageWrapperActive), children: /* @__PURE__ */ t("img", { src: a.image, alt: a.title, className: e.image }) }),
|
|
32
|
+
/* @__PURE__ */ t("div", { className: e.stepLabel, children: o ? /* @__PURE__ */ i(u, { children: [
|
|
33
|
+
/* @__PURE__ */ i(h, { size: "lg", className: e.desktop, color: l === "dark" ? "white" : "black", children: [
|
|
33
34
|
"Step ",
|
|
34
|
-
|
|
35
|
+
r + 1
|
|
35
36
|
] }),
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ i(h, { size: "sm", className: e.mobile, color: l === "dark" ? "white" : "black", children: [
|
|
37
38
|
"Step ",
|
|
38
|
-
|
|
39
|
+
r + 1
|
|
39
40
|
] })
|
|
40
|
-
] }) : /* @__PURE__ */
|
|
41
|
+
] }) : /* @__PURE__ */ i(d, { defaultVariant: "labelSm", mobileVariant: "labelXs", emphasis: !0, className: e.labelText, children: [
|
|
41
42
|
"Step ",
|
|
42
|
-
|
|
43
|
+
r + 1
|
|
43
44
|
] }) }),
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
a.description && /* @__PURE__ */
|
|
45
|
+
/* @__PURE__ */ i("div", { className: e.textContainer, children: [
|
|
46
|
+
/* @__PURE__ */ t(d, { as: "h3", defaultVariant: "headingXs", mobileVariant: "headingXxs", children: a.title }),
|
|
47
|
+
a.description && /* @__PURE__ */ t(d, { as: "p", defaultVariant: "bodyMd", mobileVariant: "bodySm", className: e.cardDescription, children: a.description })
|
|
47
48
|
] })
|
|
48
49
|
]
|
|
49
50
|
},
|
|
50
|
-
`step-${
|
|
51
|
+
`step-${r}`
|
|
51
52
|
);
|
|
52
53
|
}) }),
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
|
|
54
|
+
/* @__PURE__ */ t("div", { className: m(e.mobile, e.progressButtonContainer), children: /* @__PURE__ */ t(
|
|
55
|
+
N,
|
|
55
56
|
{
|
|
56
|
-
invert:
|
|
57
|
+
invert: l === "dark",
|
|
57
58
|
left: {
|
|
58
|
-
disabled:
|
|
59
|
-
onClick: () =>
|
|
59
|
+
disabled: s <= 0,
|
|
60
|
+
onClick: () => c((a) => a - 1)
|
|
60
61
|
},
|
|
61
62
|
right: {
|
|
62
|
-
disabled:
|
|
63
|
-
onClick: () =>
|
|
63
|
+
disabled: s >= p.length - 1,
|
|
64
|
+
onClick: () => c((a) => a + 1)
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
67
|
) })
|
|
67
68
|
] });
|
|
68
69
|
};
|
|
69
70
|
export {
|
|
70
|
-
|
|
71
|
+
X as StepsCarousel
|
|
71
72
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");require("../Icon/Icon.cjs.js");const l=require("../Icon/constants.cjs.js"),m=require("../Label/Label.cjs.js"),d=require("../TextButton/TextButton.cjs.js"),a=require("../Typography/Typography.cjs.js"),t=require("./studyGridCard.module.css.cjs.js");function h(r){return new Date(r).toLocaleDateString("en-US",{month:"2-digit",day:"2-digit",year:"numeric"}).replace(/\//g," / ")}function f({title:r,link:n,inverted:s,image:u,date:c,label:o,readTime:i}){return e.jsxs("div",{className:t.default.study,"data-inverted":s,children:[e.jsx("div",{className:t.default.imagePart,style:{backgroundImage:`url(${u})`},children:o&&e.jsx(m.Label,{...o})}),e.jsxs("div",{className:t.default.dataPart,children:[e.jsxs("div",{className:t.default.info,children:[e.jsx(a.Typography,{defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"medium",color:"color-neutral-500",children:h(c)}),!!i&&e.jsxs(e.Fragment,{children:[e.jsx(a.Typography,{defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"medium",color:"color-neutral-500",children:"•"}),e.jsxs(a.Typography,{defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"medium",color:"color-neutral-500",children:[i," MIN READ"]})]})]}),e.jsx(a.Typography,{className:t.default.title,defaultVariant:"headingSm",mobileVariant:"bodySm",as:"h6",children:r}),e.jsxs("div",{className:t.default.button,children:[e.jsx(d.TextButton,{hideOn:"desktop",className:t.default.mobileButton,size:"sm",as:"a",href:n,suffixIcon:l.EIconName.ARROW_FORWARD,children:"READ MORE"}),e.jsx(d.TextButton,{hideOn:"mobile",className:t.default.desktopButton,size:"lg",as:"a",href:n,suffixIcon:l.EIconName.ARROW_FORWARD,children:"READ MORE"})]})]})]})}exports.StudyGridCard=f;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsxs as t, jsx as a, Fragment as h } from "react/jsx-runtime";
|
|
2
|
+
import "../Icon/Icon.es.js";
|
|
3
|
+
import { EIconName as d } from "../Icon/constants.es.js";
|
|
4
|
+
import { Label as f } from "../Label/Label.es.js";
|
|
5
|
+
import { TextButton as s } from "../TextButton/TextButton.es.js";
|
|
6
|
+
import { Typography as r } from "../Typography/Typography.es.js";
|
|
7
|
+
import e from "./studyGridCard.module.css.es.js";
|
|
8
|
+
function b(i) {
|
|
9
|
+
return new Date(i).toLocaleDateString("en-US", {
|
|
10
|
+
month: "2-digit",
|
|
11
|
+
day: "2-digit",
|
|
12
|
+
year: "numeric"
|
|
13
|
+
}).replace(/\//g, " / ");
|
|
14
|
+
}
|
|
15
|
+
function S({ title: i, link: l, inverted: o, image: c, date: u, label: n, readTime: m }) {
|
|
16
|
+
return /* @__PURE__ */ t("div", { className: e.study, "data-inverted": o, children: [
|
|
17
|
+
/* @__PURE__ */ a("div", { className: e.imagePart, style: { backgroundImage: `url(${c})` }, children: n && /* @__PURE__ */ a(f, { ...n }) }),
|
|
18
|
+
/* @__PURE__ */ t("div", { className: e.dataPart, children: [
|
|
19
|
+
/* @__PURE__ */ t("div", { className: e.info, children: [
|
|
20
|
+
/* @__PURE__ */ a(r, { defaultVariant: "labelSm", mobileVariant: "labelXs", emphasis: !0, weight: "medium", color: "color-neutral-500", children: b(u) }),
|
|
21
|
+
!!m && /* @__PURE__ */ t(h, { children: [
|
|
22
|
+
/* @__PURE__ */ a(r, { defaultVariant: "labelSm", mobileVariant: "labelXs", emphasis: !0, weight: "medium", color: "color-neutral-500", children: "•" }),
|
|
23
|
+
/* @__PURE__ */ t(r, { defaultVariant: "labelSm", mobileVariant: "labelXs", emphasis: !0, weight: "medium", color: "color-neutral-500", children: [
|
|
24
|
+
m,
|
|
25
|
+
" MIN READ"
|
|
26
|
+
] })
|
|
27
|
+
] })
|
|
28
|
+
] }),
|
|
29
|
+
/* @__PURE__ */ a(r, { className: e.title, defaultVariant: "headingSm", mobileVariant: "bodySm", as: "h6", children: i }),
|
|
30
|
+
/* @__PURE__ */ t("div", { className: e.button, children: [
|
|
31
|
+
/* @__PURE__ */ a(
|
|
32
|
+
s,
|
|
33
|
+
{
|
|
34
|
+
hideOn: "desktop",
|
|
35
|
+
className: e.mobileButton,
|
|
36
|
+
size: "sm",
|
|
37
|
+
as: "a",
|
|
38
|
+
href: l,
|
|
39
|
+
suffixIcon: d.ARROW_FORWARD,
|
|
40
|
+
children: "READ MORE"
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ a(
|
|
44
|
+
s,
|
|
45
|
+
{
|
|
46
|
+
hideOn: "mobile",
|
|
47
|
+
className: e.desktopButton,
|
|
48
|
+
size: "lg",
|
|
49
|
+
as: "a",
|
|
50
|
+
href: l,
|
|
51
|
+
suffixIcon: d.ARROW_FORWARD,
|
|
52
|
+
children: "READ MORE"
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
] })
|
|
56
|
+
] })
|
|
57
|
+
] });
|
|
58
|
+
}
|
|
59
|
+
export {
|
|
60
|
+
S as StudyGridCard
|
|
61
|
+
};
|
|
@@ -0,0 +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",_="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;
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
study: t,
|
|
3
|
+
imagePart: d,
|
|
4
|
+
dataPart: _,
|
|
5
|
+
info: o,
|
|
6
|
+
title: a,
|
|
7
|
+
button: u,
|
|
8
|
+
mobileButton: s
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
u as button,
|
|
12
|
+
_ as dataPart,
|
|
13
|
+
r as default,
|
|
14
|
+
d as imagePart,
|
|
15
|
+
o as info,
|
|
16
|
+
s as mobileButton,
|
|
17
|
+
t as study,
|
|
18
|
+
a as title
|
|
19
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),t=require("react"),f=require("../../utils/cn/cn.cjs.js"),i=require("../Icon/Icon.cjs.js"),n=require("./tabs.module.css.cjs.js");function m({activeTab:s,tabs:c,onTabClick:r,size:a="sm",activeLinePosition:d="bottom",inverted:o},u){return l.jsx("div",{ref:u,className:n.default.container,children:c.map(e=>l.jsxs("button",{className:f.cn(n.default.tab,n.default[a],{[n.default.inverted]:o,[n.default.activeTab]:s===e.value,[n.default.disabled]:e.disabled,[n.default.brackets]:a==="lg"&&s===e.value&&c.length>1},n.default[d],e.className),disabled:e.disabled,onClick:()=>r(e.value),children:[e.prefixIcon&&l.jsx("div",{className:n.default.iconWrap,children:l.jsx(i.Icon,{name:e.prefixIcon})}),l.jsx("div",{children:e.label}),e.suffixIcon&&l.jsx("div",{className:n.default.iconWrap,children:l.jsx(i.Icon,{name:e.suffixIcon})})]},String(e.value)))})}const x=t.forwardRef(m);exports.Tabs=x;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { cn as
|
|
4
|
-
import { Icon as
|
|
5
|
-
import
|
|
6
|
-
function
|
|
7
|
-
return /* @__PURE__ */
|
|
1
|
+
import { jsx as n, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as p } from "react";
|
|
3
|
+
import { cn as t } from "../../utils/cn/cn.es.js";
|
|
4
|
+
import { Icon as s } from "../Icon/Icon.es.js";
|
|
5
|
+
import i from "./tabs.module.css.es.js";
|
|
6
|
+
function u({ activeTab: o, tabs: r, onTabClick: c, size: l = "sm", activeLinePosition: m = "bottom", inverted: d }, a) {
|
|
7
|
+
return /* @__PURE__ */ n("div", { ref: a, className: i.container, children: r.map((e) => /* @__PURE__ */ f(
|
|
8
8
|
"button",
|
|
9
9
|
{
|
|
10
|
-
className:
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
className: t(
|
|
11
|
+
i.tab,
|
|
12
|
+
i[l],
|
|
13
13
|
{
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
14
|
+
[i.inverted]: d,
|
|
15
|
+
[i.activeTab]: o === e.value,
|
|
16
|
+
[i.disabled]: e.disabled,
|
|
17
|
+
[i.brackets]: l === "lg" && o === e.value && r.length > 1
|
|
18
18
|
},
|
|
19
|
-
|
|
19
|
+
i[m],
|
|
20
20
|
e.className
|
|
21
21
|
),
|
|
22
22
|
disabled: e.disabled,
|
|
23
23
|
onClick: () => c(e.value),
|
|
24
24
|
children: [
|
|
25
|
-
e.prefixIcon && /* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
e.suffixIcon && /* @__PURE__ */
|
|
25
|
+
e.prefixIcon && /* @__PURE__ */ n("div", { className: i.iconWrap, children: /* @__PURE__ */ n(s, { name: e.prefixIcon }) }),
|
|
26
|
+
/* @__PURE__ */ n("div", { children: e.label }),
|
|
27
|
+
e.suffixIcon && /* @__PURE__ */ n("div", { className: i.iconWrap, children: /* @__PURE__ */ n(s, { name: e.suffixIcon }) })
|
|
28
28
|
]
|
|
29
29
|
},
|
|
30
30
|
String(e.value)
|
|
31
31
|
)) });
|
|
32
32
|
}
|
|
33
|
-
const
|
|
33
|
+
const g = p(u);
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
g as Tabs
|
|
36
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),s=require("react"),h=require("../../utils/cn/cn.cjs.js"),b=require("./Tabs.cjs.js"),r=require("./tabs.module.css.cjs.js");function v({tabs:o,activeTab:c,onTabChange:a}){const n=s.useRef(null),[l,u]=s.useState(!1),[d,f]=s.useState(!1),t=s.useCallback(()=>{const e=n.current;e&&(u(e.scrollLeft>0),f(e.scrollLeft+e.clientWidth<e.scrollWidth))},[]);return s.useEffect(()=>{const e=n.current;if(e)return t(),e.addEventListener("scroll",t),window.addEventListener("resize",t),()=>{e.removeEventListener("scroll",t),window.removeEventListener("resize",t)}},[t]),i.jsx("div",{className:h.cn(r.default.tabsWrapper,{[r.default.showFadeLeft]:l,[r.default.showFadeRight]:d}),children:i.jsx("div",{ref:n,className:r.default.tabsTape,children:i.jsx(b.Tabs,{activeTab:c,tabs:o,size:"lg",activeLinePosition:"bottom",onTabClick:a})})})}exports.TabsWithFade=v;
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { useRef as m, useState as i, useCallback as u, useEffect as p } from "react";
|
|
4
|
+
import { cn as w } from "../../utils/cn/cn.es.js";
|
|
4
5
|
import { Tabs as L } from "./Tabs.es.js";
|
|
5
|
-
import
|
|
6
|
-
function
|
|
7
|
-
const
|
|
8
|
-
const e =
|
|
9
|
-
e && (f(e.scrollLeft > 0),
|
|
6
|
+
import r from "./tabs.module.css.es.js";
|
|
7
|
+
function g({ tabs: n, activeTab: l, onTabChange: c }) {
|
|
8
|
+
const s = m(null), [a, f] = i(!1), [d, h] = i(!1), t = u(() => {
|
|
9
|
+
const e = s.current;
|
|
10
|
+
e && (f(e.scrollLeft > 0), h(e.scrollLeft + e.clientWidth < e.scrollWidth));
|
|
10
11
|
}, []);
|
|
11
12
|
return p(() => {
|
|
12
|
-
const e =
|
|
13
|
+
const e = s.current;
|
|
13
14
|
if (e)
|
|
14
15
|
return t(), e.addEventListener("scroll", t), window.addEventListener("resize", t), () => {
|
|
15
16
|
e.removeEventListener("scroll", t), window.removeEventListener("resize", t);
|
|
16
17
|
};
|
|
17
|
-
}, [t]), /* @__PURE__ */ o
|
|
18
|
+
}, [t]), /* @__PURE__ */ o(
|
|
18
19
|
"div",
|
|
19
20
|
{
|
|
20
|
-
className: w(
|
|
21
|
-
[
|
|
22
|
-
[
|
|
21
|
+
className: w(r.tabsWrapper, {
|
|
22
|
+
[r.showFadeLeft]: a,
|
|
23
|
+
[r.showFadeRight]: d
|
|
23
24
|
}),
|
|
24
|
-
children: /* @__PURE__ */ o
|
|
25
|
+
children: /* @__PURE__ */ o("div", { ref: s, className: r.tabsTape, children: /* @__PURE__ */ o(L, { activeTab: l, tabs: n, size: "lg", activeLinePosition: "bottom", onTabClick: c }) })
|
|
25
26
|
}
|
|
26
27
|
);
|
|
27
28
|
}
|
|
28
29
|
export {
|
|
29
|
-
|
|
30
|
+
g as TabsWithFade
|
|
30
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("
|
|
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;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { cn as
|
|
1
|
+
import { jsx as r, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import c from "../../styles/typography.module.css.es.js";
|
|
3
|
+
import { cn as g } from "../../utils/cn/cn.es.js";
|
|
4
4
|
import { Icon as e } from "../Icon/Icon.es.js";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
md:
|
|
8
|
-
lg:
|
|
9
|
-
},
|
|
5
|
+
import a from "./tag.module.css.es.js";
|
|
6
|
+
const h = {
|
|
7
|
+
md: c.labelMd,
|
|
8
|
+
lg: c.labelLg
|
|
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:
|
|
13
|
-
disabled:
|
|
12
|
+
className: g(a.tag, h[m], { [a.active]: i }, a[m]),
|
|
13
|
+
disabled: s,
|
|
14
14
|
onClick: () => d(l),
|
|
15
|
-
children: /* @__PURE__ */
|
|
16
|
-
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
|
|
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
|
);
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
f as Tag
|
|
24
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),f=require("../../utils/cn/cn.cjs.js"),c=require("../Icon/Icon.cjs.js"),t=require("./textButton.module.css.cjs.js"),v=({size:l="sm",as:o="button",disabled:s=!1,inverted:d=!1,children:r,prefixIcon:n,suffixIcon:a,hideOn:i,...u})=>{const m=t.default[l]||"",j=d?t.default.inverted:"",x=s?t.default.disabled:"";return e.jsx(o,{...u,className:f.cn(t.default.button,j,m,x),disabled:s,"data-hide-on":i,children:e.jsxs("div",{className:t.default.content,children:[n&&e.jsx("div",{className:t.default.iconWrap,children:e.jsx(c.Icon,{name:n})}),e.jsx("div",{children:r}),a&&e.jsx("div",{className:t.default.iconWrap,children:e.jsx(c.Icon,{name:a})})]})})};exports.TextButton=v;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { cn as
|
|
1
|
+
import { jsx as e, jsxs as N } from "react/jsx-runtime";
|
|
2
|
+
import { cn as b } from "../../utils/cn/cn.es.js";
|
|
3
3
|
import { Icon as o } from "../Icon/Icon.es.js";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import s from "./textButton.module.css.es.js";
|
|
5
|
+
const x = ({
|
|
6
6
|
size: r = "sm",
|
|
7
7
|
as: i = "button",
|
|
8
|
-
disabled:
|
|
9
|
-
inverted:
|
|
10
|
-
children:
|
|
8
|
+
disabled: t = !1,
|
|
9
|
+
inverted: c = !1,
|
|
10
|
+
children: l,
|
|
11
11
|
prefixIcon: a,
|
|
12
12
|
suffixIcon: n,
|
|
13
|
-
hideOn:
|
|
13
|
+
hideOn: m,
|
|
14
14
|
...d
|
|
15
15
|
}) => {
|
|
16
|
-
const
|
|
17
|
-
return /* @__PURE__ */
|
|
16
|
+
const p = s[r] || "", v = c ? s.inverted : "", h = t ? s.disabled : "";
|
|
17
|
+
return /* @__PURE__ */ e(
|
|
18
18
|
i,
|
|
19
19
|
{
|
|
20
20
|
...d,
|
|
21
|
-
className:
|
|
22
|
-
disabled:
|
|
23
|
-
"data-hide-on":
|
|
24
|
-
children: /* @__PURE__ */
|
|
25
|
-
a && /* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
n && /* @__PURE__ */
|
|
21
|
+
className: b(s.button, v, p, h),
|
|
22
|
+
disabled: t,
|
|
23
|
+
"data-hide-on": m,
|
|
24
|
+
children: /* @__PURE__ */ N("div", { className: s.content, children: [
|
|
25
|
+
a && /* @__PURE__ */ e("div", { className: s.iconWrap, children: /* @__PURE__ */ e(o, { name: a }) }),
|
|
26
|
+
/* @__PURE__ */ e("div", { children: l }),
|
|
27
|
+
n && /* @__PURE__ */ e("div", { className: s.iconWrap, children: /* @__PURE__ */ e(o, { name: n }) })
|
|
28
28
|
] })
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
31
|
};
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
x as TextButton
|
|
34
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),r=require("../../assets/svg/badge-icon.svg.cjs.js"),s=require("./typeBadge.module.css.cjs.js");var n=(e=>(e.SENESCENCE="senescence",e.SUPPLEMENTS="supplements",e.OUTLINE="outline",e.ENERGY="energy",e.METABOLISM="metabolism",e.LABS="labs",e))(n||{});const a=({type:e="senescence"})=>t.jsx("div",{className:s.default.typeBadge,"data-type":e,children:t.jsx(r.default,{className:s.default.badgeIcon})});exports.ETypeBadge=n;exports.TypeBadge=a;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import n from "../../assets/svg/badge-icon.svg.es.js";
|
|
3
3
|
import t from "./typeBadge.module.css.es.js";
|
|
4
|
-
var o = /* @__PURE__ */ ((
|
|
4
|
+
var o = /* @__PURE__ */ ((e) => (e.SENESCENCE = "senescence", e.SUPPLEMENTS = "supplements", e.OUTLINE = "outline", e.ENERGY = "energy", e.METABOLISM = "metabolism", e.LABS = "labs", e))(o || {});
|
|
5
5
|
const a = ({
|
|
6
|
-
type:
|
|
6
|
+
type: e = "senescence"
|
|
7
7
|
/* SENESCENCE */
|
|
8
|
-
}) => /* @__PURE__ */
|
|
8
|
+
}) => /* @__PURE__ */ s("div", { className: t.typeBadge, "data-type": e, children: /* @__PURE__ */ s(n, { className: t.badgeIcon }) });
|
|
9
9
|
export {
|
|
10
10
|
o as ETypeBadge,
|
|
11
11
|
a as TypeBadge
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react/jsx-runtime"),s=require("../../styles/typography.module.css.cjs.js"),d=require("../../utils/cn/cn.cjs.js"),m=require("./Typography.service.cjs.js"),f=({defaultVariant:t,children:o,className:i="",weight:l,emphasis:r=!1,as:c="span",mobileVariant:a,color:n})=>{const u=s.default[t]||"";let e=l;r&&!l&&(e="medium");const p=e?s.default[`weight${e.charAt(0).toUpperCase()}${e.slice(1)}`]:"",y=t.startsWith("label")&&r?s.default.labelEmphasis:"",g=a?s.default[`mobile__${a}`]:"";return h.jsx(c,{style:m.getMemoizedColorStyles(n),className:d.cn(u,p,y,g,i),children:o})};exports.Typography=f;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { cn as
|
|
1
|
+
import { jsx as y } from "react/jsx-runtime";
|
|
2
|
+
import o from "../../styles/typography.module.css.es.js";
|
|
3
|
+
import { cn as C } from "../../utils/cn/cn.es.js";
|
|
4
4
|
import { getMemoizedColorStyles as g } from "./Typography.service.es.js";
|
|
5
|
-
const
|
|
6
|
-
defaultVariant:
|
|
5
|
+
const _ = ({
|
|
6
|
+
defaultVariant: t,
|
|
7
7
|
children: a,
|
|
8
8
|
className: m = "",
|
|
9
9
|
weight: e,
|
|
@@ -12,12 +12,12 @@ const u = ({
|
|
|
12
12
|
mobileVariant: r,
|
|
13
13
|
color: p
|
|
14
14
|
}) => {
|
|
15
|
-
const c = t
|
|
15
|
+
const c = o[t] || "";
|
|
16
16
|
let s = e;
|
|
17
17
|
l && !e && (s = "medium");
|
|
18
|
-
const n = s ?
|
|
19
|
-
return /* @__PURE__ */
|
|
18
|
+
const n = s ? o[`weight${s.charAt(0).toUpperCase()}${s.slice(1)}`] : "", h = t.startsWith("label") && l ? o.labelEmphasis : "", f = r ? o[`mobile__${r}`] : "";
|
|
19
|
+
return /* @__PURE__ */ y(i, { style: g(p), className: C(c, n, h, f, m), children: a });
|
|
20
20
|
};
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
_ as Typography
|
|
23
23
|
};
|