@zenpatient-org/healthspan-marketing-ui 0.1.17 → 0.1.19

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.
Files changed (72) hide show
  1. package/dist/components/Button/Button.es.js +6 -29
  2. package/dist/components/Callback/Callback.d.ts +1 -1
  3. package/dist/components/Callback/Callback.es.js +2 -16
  4. package/dist/components/Callback/index.d.ts +1 -1
  5. package/dist/components/ContentTabs/ContentTabs.d.ts +1 -1
  6. package/dist/components/ContentTabs/ContentTabs.es.js +18 -23
  7. package/dist/components/Cursor/Cursor.d.ts +2 -0
  8. package/dist/components/Cursor/components/ServerCursor.d.ts +3 -1
  9. package/dist/components/FilterMenu/FilterMenu.d.ts +1 -1
  10. package/dist/components/FilterMenu/FilterMenu.es.js +17 -80
  11. package/dist/components/HighlightedTitle/HighlightedTitle.cjs.js +1 -1
  12. package/dist/components/HighlightedTitle/HighlightedTitle.es.js +6 -15
  13. package/dist/components/Icon/Icon.cjs.js +1 -1
  14. package/dist/components/Icon/Icon.es.js +2 -2
  15. package/dist/components/IconButton/IconButton.es.js +1 -9
  16. package/dist/components/InfiniteScroll/InfiniteScroll.es.js +3 -41
  17. package/dist/components/Label/Label.d.ts +1 -1
  18. package/dist/components/Label/Label.es.js +5 -23
  19. package/dist/components/ProductGallery/ProductGallery.cjs.js +1 -1
  20. package/dist/components/ProductGallery/ProductGallery.d.ts +1 -1
  21. package/dist/components/ProductGallery/ProductGallery.es.js +48 -49
  22. package/dist/components/ProductGalleryCard/ProductGalleryCard.d.ts +1 -1
  23. package/dist/components/ProductGalleryCard/ProductGalleryCard.es.js +10 -62
  24. package/dist/components/ProductListing/ProductListing.d.ts +1 -1
  25. package/dist/components/ProgressButton/ProgressButton.d.ts +2 -2
  26. package/dist/components/ProgressButton/ProgressButton.es.js +5 -35
  27. package/dist/components/StepsCarousel/StepsCarousel.cjs.js +1 -0
  28. package/dist/components/StepsCarousel/StepsCarousel.d.ts +13 -0
  29. package/dist/components/StepsCarousel/StepsCarousel.es.js +71 -0
  30. package/dist/components/StepsCarousel/index.d.ts +1 -0
  31. package/dist/components/StepsCarousel/stepsCarousel.module.css.cjs.js +1 -0
  32. package/dist/components/StepsCarousel/stepsCarousel.module.css.es.js +31 -0
  33. package/dist/components/StudyGridCard/StudyGridCard.d.ts +1 -1
  34. package/dist/components/Tabs/Tabs.es.js +1 -8
  35. package/dist/components/Tabs/TabsWithFade.d.ts +1 -1
  36. package/dist/components/Tabs/TabsWithFade.es.js +2 -15
  37. package/dist/components/Tag/Tag.d.ts +1 -1
  38. package/dist/components/Tag/Tag.es.js +13 -27
  39. package/dist/components/TextButton/TextButton.es.js +1 -6
  40. package/dist/components/Typography/Typography.es.js +8 -21
  41. package/dist/components/index.d.ts +4 -3
  42. package/dist/healthspan-marketing-ui.css +1 -1
  43. package/dist/index.cjs.js +1 -1
  44. package/dist/index.es.js +53 -51
  45. package/dist/modules/Callback/Callback.d.ts +6 -0
  46. package/dist/modules/Callback/index.d.ts +1 -0
  47. package/dist/modules/Comparison/Comparison.d.ts +1 -1
  48. package/dist/modules/Comparison/components/ComparisonMobileView/ComparisonMobileView.d.ts +1 -1
  49. package/dist/modules/FeaturesGallery/FeaturesGallery.d.ts +1 -1
  50. package/dist/modules/FollowTheScience/FollowTheScience.d.ts +1 -1
  51. package/dist/modules/HowItWorks/HowItWorks.d.ts +1 -1
  52. package/dist/modules/OptimalHealth/OptimalHealth.d.ts +1 -1
  53. package/dist/modules/OurProcess/OurProcess.d.ts +3 -3
  54. package/dist/modules/ProductsDisplay/ProductsDisplay.cjs.js +1 -1
  55. package/dist/modules/ProductsDisplay/ProductsDisplay.d.ts +1 -1
  56. package/dist/modules/ProductsDisplay/ProductsDisplay.es.js +5 -31
  57. package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.cjs.js +1 -1
  58. package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.d.ts +1 -1
  59. package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.es.js +5 -27
  60. package/dist/modules/ProductsDisplay/useProductsData.d.ts +1 -1
  61. package/dist/modules/ProductsDisplay/useProductsData.es.js +5 -12
  62. package/dist/modules/TotalCare/TotalCare.d.ts +1 -1
  63. package/dist/modules/TotalCare/TotalCare.es.js +4 -26
  64. package/dist/modules/YourProtocol/YourProtocol.cjs.js +1 -1
  65. package/dist/modules/YourProtocol/YourProtocol.es.js +3 -20
  66. package/dist/modules/YourProtocol/components/ProtocolTags/ProtocolTags.cjs.js +1 -1
  67. package/dist/modules/YourProtocol/components/ProtocolTags/ProtocolTags.es.js +9 -40
  68. package/dist/utils/useSwiper.d.ts +1 -0
  69. package/package.json +8 -4
  70. package/dist/modules/OurProcess/components/StepCards/StepCards.d.ts +0 -9
  71. package/dist/modules/OurProcess/components/StepCards/index.d.ts +0 -1
  72. package/dist/modules/OurProcess/types.d.ts +0 -5
@@ -1,58 +1,57 @@
1
- import { j as s } from "../../_virtual/jsx-runtime.es.js";
2
- import { useEffect as S } from "react";
3
- import N from "../../node_modules/swiper/modules/navigation.es.js";
4
- import { Swiper as u, SwiperSlide as v } from "../../node_modules/swiper/swiper-react.es.js";
5
- import { cn as d } from "../../utils/cn.es.js";
1
+ import { j as i } from "../../_virtual/jsx-runtime.es.js";
2
+ import { useEffect as c } from "react";
3
+ import u from "../../node_modules/swiper/modules/navigation.es.js";
4
+ import { Swiper as v, SwiperSlide as g } from "../../node_modules/swiper/swiper-react.es.js";
5
+ import { cn as p } from "../../utils/cn.es.js";
6
6
  import { useSwiper as b } from "../../utils/useSwiper.es.js";
7
- import { ProgressButton as n } from "../ProgressButton/ProgressButton.es.js";
7
+ import { ProgressButton as m } from "../ProgressButton/ProgressButton.es.js";
8
8
  /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
11
  import e from "./productGallery.module.css.es.js";
12
- const g = [N], A = ({
13
- slides: c,
14
- header: p,
15
- isTabbed: r = !1
16
- }) => {
12
+ const k = [u], A = ({ slides: s, header: h, isTabbed: o = !1 }) => {
17
13
  const {
18
- swiper: i,
19
- activeIndex: o,
20
- isEnd: l,
21
- setIsEnd: m,
22
- hideNav: h,
23
- handleSlideChange: w,
24
- handlePrevClick: t,
14
+ swiper: r,
15
+ activeIndex: l,
16
+ isEnd: t,
17
+ setIsEnd: w,
18
+ hideNav: x,
19
+ handleSlideChange: f,
20
+ handlePrevClick: n,
25
21
  handleNextClick: a,
26
- onSwiperInit: x,
27
- handleSwiperResize: f
22
+ onSwiperInit: S,
23
+ handleSwiperResize: j,
24
+ handleSlideTo: d
28
25
  } = b();
29
- return S(() => {
30
- i == null || i.setProgress(0, 300);
31
- }, [i]), /* @__PURE__ */ s.jsxs("div", { className: e.root, children: [
32
- /* @__PURE__ */ s.jsxs(
26
+ return c(() => {
27
+ r == null || r.setProgress(0, 300);
28
+ }, [r]), c(() => {
29
+ s.length && d(0);
30
+ }, [s, d]), /* @__PURE__ */ i.jsxs("div", { className: e.root, children: [
31
+ /* @__PURE__ */ i.jsxs(
33
32
  "div",
34
33
  {
35
- className: d(e.topRow, {
36
- [e.topRowTabbed]: r
34
+ className: p(e.topRow, {
35
+ [e.topRowTabbed]: o
37
36
  }),
38
37
  children: [
39
- /* @__PURE__ */ s.jsx("div", { className: e.headerWrapper, children: p }),
40
- /* @__PURE__ */ s.jsx(
38
+ /* @__PURE__ */ i.jsx("div", { className: e.headerWrapper, children: h }),
39
+ /* @__PURE__ */ i.jsx(
41
40
  "div",
42
41
  {
43
- className: d(e.swiperControlsDesktop, {
44
- [e.swiperControlsHidden]: h,
45
- [e.swiperControlsTabbed]: r
42
+ className: p(e.swiperControlsDesktop, {
43
+ [e.swiperControlsHidden]: x,
44
+ [e.swiperControlsTabbed]: o
46
45
  }),
47
- children: /* @__PURE__ */ s.jsx(
48
- n,
46
+ children: /* @__PURE__ */ i.jsx(
47
+ m,
49
48
  {
50
49
  left: {
51
- disabled: o <= 0,
52
- onClick: t
50
+ disabled: l <= 0,
51
+ onClick: n
53
52
  },
54
53
  right: {
55
- disabled: l,
54
+ disabled: t,
56
55
  onClick: a
57
56
  }
58
57
  }
@@ -62,29 +61,29 @@ const g = [N], A = ({
62
61
  ]
63
62
  }
64
63
  ),
65
- /* @__PURE__ */ s.jsx("div", { className: e.carouselArea, children: /* @__PURE__ */ s.jsx(
66
- u,
64
+ /* @__PURE__ */ i.jsx("div", { className: e.carouselArea, children: /* @__PURE__ */ i.jsx(
65
+ v,
67
66
  {
68
- onSwiper: x,
69
- onResize: f,
70
- onSlideChange: w,
71
- onReachEnd: () => m(!0),
72
- modules: g,
67
+ onSwiper: S,
68
+ onResize: j,
69
+ onSlideChange: f,
70
+ onReachEnd: () => w(!0),
71
+ modules: k,
73
72
  spaceBetween: 0,
74
73
  slidesPerView: "auto",
75
74
  className: e.swiper,
76
- children: c.map((j, C) => /* @__PURE__ */ s.jsx(v, { className: e.swiperSlide, children: j }, C))
75
+ children: s.map((C, N) => /* @__PURE__ */ i.jsx(g, { className: e.swiperSlide, children: C }, N))
77
76
  }
78
77
  ) }),
79
- /* @__PURE__ */ s.jsx("div", { className: e.swiperControlsMobile, children: /* @__PURE__ */ s.jsx(
80
- n,
78
+ /* @__PURE__ */ i.jsx("div", { className: e.swiperControlsMobile, children: /* @__PURE__ */ i.jsx(
79
+ m,
81
80
  {
82
81
  left: {
83
- disabled: o <= 0,
84
- onClick: t
82
+ disabled: l <= 0,
83
+ onClick: n
85
84
  },
86
85
  right: {
87
- disabled: l,
86
+ disabled: t,
88
87
  onClick: a
89
88
  }
90
89
  }
@@ -1,3 +1,3 @@
1
1
  import { TProductGalleryCardView } from './types';
2
2
 
3
- export declare const ProductGalleryCard: ({ name, price, image, link, buttons, }: TProductGalleryCardView) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const ProductGalleryCard: ({ name, price, image, link, buttons }: TProductGalleryCardView) => import("react/jsx-runtime").JSX.Element;
@@ -2,71 +2,19 @@ import { j as e } from "../../_virtual/jsx-runtime.es.js";
2
2
  import { Button as i } from "../Button/Button.es.js";
3
3
  import { Typography as o } from "../Typography/Typography.es.js";
4
4
  import r from "./productGalleryCard.module.css.es.js";
5
- const f = ({
6
- name: n,
7
- price: c,
8
- image: m,
9
- link: d,
10
- buttons: s
11
- }) => {
5
+ const f = ({ name: n, price: c, image: m, link: d, buttons: s }) => {
12
6
  const t = (a) => {
13
7
  a.preventDefault(), a.stopPropagation();
14
8
  };
15
- return /* @__PURE__ */ e.jsxs(
16
- "a",
17
- {
18
- href: d,
19
- target: "_blank",
20
- rel: "noopener noreferrer",
21
- className: r.root,
22
- children: [
23
- /* @__PURE__ */ e.jsxs("div", { className: r.productInfo, children: [
24
- /* @__PURE__ */ e.jsx(
25
- o,
26
- {
27
- defaultVariant: "labelXl",
28
- mobileVariant: "labelLg",
29
- className: r.title,
30
- children: n
31
- }
32
- ),
33
- /* @__PURE__ */ e.jsx(
34
- o,
35
- {
36
- defaultVariant: "labelXl",
37
- mobileVariant: "labelLg",
38
- className: r.price,
39
- children: c
40
- }
41
- )
42
- ] }),
43
- /* @__PURE__ */ e.jsx(
44
- "img",
45
- {
46
- src: m,
47
- alt: "product image",
48
- className: r.productImage
49
- }
50
- ),
51
- /* @__PURE__ */ e.jsx(
52
- "div",
53
- {
54
- onClick: t,
55
- className: r.buttonContainerDesktop,
56
- children: s.map((a, l) => /* @__PURE__ */ e.jsx(i, { size: "sm", ...a, children: a.label }, l))
57
- }
58
- ),
59
- /* @__PURE__ */ e.jsx(
60
- "div",
61
- {
62
- onClick: t,
63
- className: r.buttonContainerMobile,
64
- children: s.map((a, l) => /* @__PURE__ */ e.jsx(i, { size: "xs", ...a, children: a.label }, l))
65
- }
66
- )
67
- ]
68
- }
69
- );
9
+ return /* @__PURE__ */ e.jsxs("a", { href: d, target: "_blank", rel: "noopener noreferrer", className: r.root, children: [
10
+ /* @__PURE__ */ e.jsxs("div", { className: r.productInfo, children: [
11
+ /* @__PURE__ */ e.jsx(o, { defaultVariant: "labelXl", mobileVariant: "labelLg", className: r.title, children: n }),
12
+ /* @__PURE__ */ e.jsx(o, { defaultVariant: "labelXl", mobileVariant: "labelLg", className: r.price, children: c })
13
+ ] }),
14
+ /* @__PURE__ */ e.jsx("img", { src: m, alt: "product image", className: r.productImage }),
15
+ /* @__PURE__ */ e.jsx("div", { onClick: t, className: r.buttonContainerDesktop, children: s.map((a, l) => /* @__PURE__ */ e.jsx(i, { size: "sm", ...a, children: a.label }, l)) }),
16
+ /* @__PURE__ */ e.jsx("div", { onClick: t, className: r.buttonContainerMobile, children: s.map((a, l) => /* @__PURE__ */ e.jsx(i, { size: "xs", ...a, children: a.label }, l)) })
17
+ ] });
70
18
  };
71
19
  export {
72
20
  f as ProductGalleryCard
@@ -15,5 +15,5 @@ type ProductListingProps = {
15
15
  } & ButtonProps>;
16
16
  label?: string;
17
17
  };
18
- export declare const ProductListing: ({ name, description, image, price, buttons, features, label, }: ProductListingProps) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const ProductListing: ({ name, description, image, price, buttons, features, label }: ProductListingProps) => import("react/jsx-runtime").JSX.Element;
19
19
  export {};
@@ -1,4 +1,4 @@
1
- import { ButtonHTMLAttributes } from 'react';
1
+ import { default as React, ButtonHTMLAttributes } from 'react';
2
2
  import { TOrientation } from './types';
3
3
 
4
4
  export type PropgressButtonBaseProps = {
@@ -11,4 +11,4 @@ export type ProgressButtonProps = {
11
11
  left: ButtonHTMLAttributes<HTMLButtonElement>;
12
12
  right: ButtonHTMLAttributes<HTMLButtonElement>;
13
13
  };
14
- export declare const ProgressButton: ({ invert, left, right, }: ProgressButtonProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const ProgressButton: ({ invert, left, right }: ProgressButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,12 +4,7 @@ import { EIconName as r } from "../Icon/constants.es.js";
4
4
  import "react";
5
5
  import { Icon as l } from "../Icon/Icon.es.js";
6
6
  import o from "./progressButton.module.css.es.js";
7
- const a = ({
8
- orientation: s,
9
- icon: i,
10
- disabled: e = !1,
11
- onClick: c
12
- }) => /* @__PURE__ */ t.jsx(
7
+ const a = ({ orientation: s, icon: i, disabled: e = !1, onClick: c }) => /* @__PURE__ */ t.jsx(
13
8
  "button",
14
9
  {
15
10
  className: n(o.button, {
@@ -20,41 +15,16 @@ const a = ({
20
15
  onClick: c,
21
16
  children: /* @__PURE__ */ t.jsx("div", { className: o.iconWrap, children: /* @__PURE__ */ t.jsx(l, { name: i, className: o.icon }) })
22
17
  }
23
- ), u = ({
24
- invert: s = !1,
25
- left: i,
26
- right: e
27
- }) => /* @__PURE__ */ t.jsxs(
18
+ ), u = ({ invert: s = !1, left: i, right: e }) => /* @__PURE__ */ t.jsxs(
28
19
  "div",
29
20
  {
30
21
  className: n(o.root, {
31
22
  [o.inverted]: s
32
23
  }),
33
24
  children: [
34
- /* @__PURE__ */ t.jsx(
35
- a,
36
- {
37
- orientation: "left",
38
- icon: r.ARROW_BACK,
39
- disabled: i.disabled,
40
- onClick: i.onClick
41
- }
42
- ),
43
- /* @__PURE__ */ t.jsx(
44
- "div",
45
- {
46
- className: n(o.divider, { [o.inverted]: s })
47
- }
48
- ),
49
- /* @__PURE__ */ t.jsx(
50
- a,
51
- {
52
- orientation: "right",
53
- icon: r.ARROW_FORWARD,
54
- disabled: e.disabled,
55
- onClick: e.onClick
56
- }
57
- )
25
+ /* @__PURE__ */ t.jsx(a, { orientation: "left", icon: r.ARROW_BACK, disabled: i.disabled, onClick: i.onClick }),
26
+ /* @__PURE__ */ t.jsx("div", { className: n(o.divider, { [o.inverted]: s }) }),
27
+ /* @__PURE__ */ t.jsx(a, { orientation: "right", icon: r.ARROW_FORWARD, disabled: e.disabled, onClick: e.onClick })
58
28
  ]
59
29
  }
60
30
  );
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.cjs.js"),c=require("react"),u=require("../../utils/cn.cjs.js"),p=require("../Label/Label.cjs.js"),j=require("../ProgressButton/ProgressButton.cjs.js"),d=require("../Typography/Typography.cjs.js"),t=require("./stepsCarousel.module.css.cjs.js"),f=({steps:m,colorScheme:i})=>{const[r,l]=c.useState(0),n=c.useRef([]);return c.useEffect(()=>{var s;n.current[r]&&((s=n.current[r])==null||s.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}))},[r]),e.jsxRuntimeExports.jsxs("div",{className:t.default.root,"data-scheme":i,children:[e.jsxRuntimeExports.jsx("div",{className:t.default.stepsContainer,"data-scheme":i,children:m.map((s,a)=>{const o=r===a;return e.jsxRuntimeExports.jsxs("button",{ref:x=>{n.current.splice(a,1,x)},className:u.cn(t.default.card,o&&t.default.cardActive),onClick:()=>l(a),type:"button",children:[e.jsxRuntimeExports.jsx("div",{className:u.cn(t.default.imageWrapper,o&&t.default.imageWrapperActive),children:e.jsxRuntimeExports.jsx("img",{src:s.image,alt:s.title,className:t.default.image})}),e.jsxRuntimeExports.jsx("div",{className:t.default.stepLabel,children:o?e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs(p.Label,{size:"lg",className:t.default.desktop,color:i==="dark"?"white":"black",children:["Step ",a+1]}),e.jsxRuntimeExports.jsxs(p.Label,{size:"sm",className:t.default.mobile,color:i==="dark"?"white":"black",children:["Step ",a+1]})]}):e.jsxRuntimeExports.jsxs(d.Typography,{defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,className:t.default.labelText,children:["Step ",a+1]})}),e.jsxRuntimeExports.jsxs("div",{className:t.default.textContainer,children:[e.jsxRuntimeExports.jsx(d.Typography,{as:"h3",defaultVariant:"headingXs",mobileVariant:"headingXxs",children:s.title}),s.description&&e.jsxRuntimeExports.jsx(d.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",className:t.default.cardDescription,children:s.description})]})]},`step-${a}`)})}),e.jsxRuntimeExports.jsx("div",{className:u.cn(t.default.mobile,t.default.progressButtonContainer),children:e.jsxRuntimeExports.jsx(j.ProgressButton,{invert:i==="dark",left:{disabled:r<=0,onClick:()=>l(s=>s-1)},right:{disabled:r>=m.length-1,onClick:()=>l(s=>s+1)}})})]})};exports.StepsCarousel=f;
@@ -0,0 +1,13 @@
1
+ import { TColorScheme } from '../../types/common';
2
+
3
+ export type TStepsCarouselView = Array<{
4
+ title: string;
5
+ image: string;
6
+ description?: string;
7
+ }>;
8
+ type StepsCarouselProps = {
9
+ steps: TStepsCarouselView;
10
+ colorScheme: TColorScheme;
11
+ };
12
+ export declare const StepsCarousel: ({ steps, colorScheme }: StepsCarouselProps) => import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,71 @@
1
+ import { j as e } from "../../_virtual/jsx-runtime.es.js";
2
+ import { useState as b, useRef as u, useEffect as f } from "react";
3
+ import { cn as o } from "../../utils/cn.es.js";
4
+ import { Label as p } from "../Label/Label.es.js";
5
+ import { ProgressButton as j } from "../ProgressButton/ProgressButton.es.js";
6
+ import { Typography as m } from "../Typography/Typography.es.js";
7
+ import s from "./stepsCarousel.module.css.es.js";
8
+ const y = ({ steps: d, colorScheme: i }) => {
9
+ const [r, l] = b(0), c = u([]);
10
+ return f(() => {
11
+ var a;
12
+ c.current[r] && ((a = c.current[r]) == null || a.scrollIntoView({
13
+ behavior: "smooth",
14
+ inline: "center",
15
+ block: "nearest"
16
+ }));
17
+ }, [r]), /* @__PURE__ */ e.jsxs("div", { className: s.root, "data-scheme": i, children: [
18
+ /* @__PURE__ */ e.jsx("div", { className: s.stepsContainer, "data-scheme": i, children: d.map((a, t) => {
19
+ const n = r === t;
20
+ return /* @__PURE__ */ e.jsxs(
21
+ "button",
22
+ {
23
+ ref: (h) => {
24
+ c.current.splice(t, 1, h);
25
+ },
26
+ className: o(s.card, n && s.cardActive),
27
+ onClick: () => l(t),
28
+ type: "button",
29
+ children: [
30
+ /* @__PURE__ */ e.jsx("div", { className: o(s.imageWrapper, n && s.imageWrapperActive), children: /* @__PURE__ */ e.jsx("img", { src: a.image, alt: a.title, className: s.image }) }),
31
+ /* @__PURE__ */ e.jsx("div", { className: s.stepLabel, children: n ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
32
+ /* @__PURE__ */ e.jsxs(p, { size: "lg", className: s.desktop, color: i === "dark" ? "white" : "black", children: [
33
+ "Step ",
34
+ t + 1
35
+ ] }),
36
+ /* @__PURE__ */ e.jsxs(p, { size: "sm", className: s.mobile, color: i === "dark" ? "white" : "black", children: [
37
+ "Step ",
38
+ t + 1
39
+ ] })
40
+ ] }) : /* @__PURE__ */ e.jsxs(m, { defaultVariant: "labelSm", mobileVariant: "labelXs", emphasis: !0, className: s.labelText, children: [
41
+ "Step ",
42
+ t + 1
43
+ ] }) }),
44
+ /* @__PURE__ */ e.jsxs("div", { className: s.textContainer, children: [
45
+ /* @__PURE__ */ e.jsx(m, { as: "h3", defaultVariant: "headingXs", mobileVariant: "headingXxs", children: a.title }),
46
+ a.description && /* @__PURE__ */ e.jsx(m, { as: "p", defaultVariant: "bodyMd", mobileVariant: "bodySm", className: s.cardDescription, children: a.description })
47
+ ] })
48
+ ]
49
+ },
50
+ `step-${t}`
51
+ );
52
+ }) }),
53
+ /* @__PURE__ */ e.jsx("div", { className: o(s.mobile, s.progressButtonContainer), children: /* @__PURE__ */ e.jsx(
54
+ j,
55
+ {
56
+ invert: i === "dark",
57
+ left: {
58
+ disabled: r <= 0,
59
+ onClick: () => l((a) => a - 1)
60
+ },
61
+ right: {
62
+ disabled: r >= d.length - 1,
63
+ onClick: () => l((a) => a + 1)
64
+ }
65
+ }
66
+ ) })
67
+ ] });
68
+ };
69
+ export {
70
+ y as StepsCarousel
71
+ };
@@ -0,0 +1 @@
1
+ export { StepsCarousel, type TStepsCarouselView } from './StepsCarousel';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="stepsCarousel-module__root___VidW7",t="stepsCarousel-module__stepsContainer___yWhtm",s="stepsCarousel-module__card___16wd3",o="stepsCarousel-module__imageWrapper___WCmbp",_="stepsCarousel-module__image___RY9-R",r="stepsCarousel-module__cardActive___xdGR8",a="stepsCarousel-module__stepLabel___jnL1f",l="stepsCarousel-module__labelText___TC392",n="stepsCarousel-module__textContainer___l--dI",p="stepsCarousel-module__cardDescription___oPSgY",i="stepsCarousel-module__mobile___4s-pE",d="stepsCarousel-module__progressButtonContainer___PdL6N",c="stepsCarousel-module__desktop___awZBc",u={root:e,stepsContainer:t,card:s,imageWrapper:o,image:_,cardActive:r,stepLabel:a,labelText:l,textContainer:n,cardDescription:p,mobile:i,progressButtonContainer:d,desktop:c};exports.card=s;exports.cardActive=r;exports.cardDescription=p;exports.default=u;exports.desktop=c;exports.image=_;exports.imageWrapper=o;exports.labelText=l;exports.mobile=i;exports.progressButtonContainer=d;exports.root=e;exports.stepLabel=a;exports.stepsContainer=t;exports.textContainer=n;
@@ -0,0 +1,31 @@
1
+ const e = "stepsCarousel-module__root___VidW7", s = "stepsCarousel-module__stepsContainer___yWhtm", t = "stepsCarousel-module__card___16wd3", o = "stepsCarousel-module__imageWrapper___WCmbp", _ = "stepsCarousel-module__image___RY9-R", r = "stepsCarousel-module__cardActive___xdGR8", a = "stepsCarousel-module__stepLabel___jnL1f", l = "stepsCarousel-module__labelText___TC392", n = "stepsCarousel-module__textContainer___l--dI", p = "stepsCarousel-module__cardDescription___oPSgY", d = "stepsCarousel-module__mobile___4s-pE", c = "stepsCarousel-module__progressButtonContainer___PdL6N", u = "stepsCarousel-module__desktop___awZBc", i = {
2
+ root: e,
3
+ stepsContainer: s,
4
+ card: t,
5
+ imageWrapper: o,
6
+ image: _,
7
+ cardActive: r,
8
+ stepLabel: a,
9
+ labelText: l,
10
+ textContainer: n,
11
+ cardDescription: p,
12
+ mobile: d,
13
+ progressButtonContainer: c,
14
+ desktop: u
15
+ };
16
+ export {
17
+ t as card,
18
+ r as cardActive,
19
+ p as cardDescription,
20
+ i as default,
21
+ u as desktop,
22
+ _ as image,
23
+ o as imageWrapper,
24
+ l as labelText,
25
+ d as mobile,
26
+ c as progressButtonContainer,
27
+ e as root,
28
+ a as stepLabel,
29
+ s as stepsContainer,
30
+ n as textContainer
31
+ };
@@ -9,4 +9,4 @@ export type StudyGridCardProps = {
9
9
  readTime: number;
10
10
  link: string;
11
11
  };
12
- export declare function StudyGridCard({ title, link, inverted, image, date, label, readTime, }: 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;
@@ -3,14 +3,7 @@ import { forwardRef as f } from "react";
3
3
  import { cn as x } from "../../utils/cn.es.js";
4
4
  import { Icon as l } from "../Icon/Icon.es.js";
5
5
  import s from "./tabs.module.css.es.js";
6
- function p({
7
- activeTab: n,
8
- tabs: o,
9
- onTabClick: c,
10
- size: r = "sm",
11
- activeLinePosition: m = "bottom",
12
- inverted: a
13
- }, d) {
6
+ function p({ activeTab: n, tabs: o, onTabClick: c, size: r = "sm", activeLinePosition: m = "bottom", inverted: a }, d) {
14
7
  return /* @__PURE__ */ i.jsx("div", { ref: d, className: s.container, children: o.map((e) => /* @__PURE__ */ i.jsxs(
15
8
  "button",
16
9
  {
@@ -5,5 +5,5 @@ type Props<T extends string | number> = {
5
5
  activeTab: T;
6
6
  onTabChange: (tab: T) => void;
7
7
  };
8
- export declare function TabsWithFade<T extends string>({ tabs, activeTab, onTabChange, }: Props<T>): import("react/jsx-runtime").JSX.Element;
8
+ export declare function TabsWithFade<T extends string>({ tabs, activeTab, onTabChange }: Props<T>): import("react/jsx-runtime").JSX.Element;
9
9
  export {};
@@ -3,11 +3,7 @@ import { useRef as h, useState as i, useCallback as u, useEffect as p } from "re
3
3
  import { cn as w } from "../../utils/cn.es.js";
4
4
  import { Tabs as L } from "./Tabs.es.js";
5
5
  import s from "./tabs.module.css.es.js";
6
- function j({
7
- tabs: n,
8
- activeTab: l,
9
- onTabChange: c
10
- }) {
6
+ function j({ tabs: n, activeTab: l, onTabChange: c }) {
11
7
  const r = h(null), [a, f] = i(!1), [m, d] = i(!1), t = u(() => {
12
8
  const e = r.current;
13
9
  e && (f(e.scrollLeft > 0), d(e.scrollLeft + e.clientWidth < e.scrollWidth));
@@ -25,16 +21,7 @@ function j({
25
21
  [s.showFadeLeft]: a,
26
22
  [s.showFadeRight]: m
27
23
  }),
28
- children: /* @__PURE__ */ o.jsx("div", { ref: r, className: s.tabsTape, children: /* @__PURE__ */ o.jsx(
29
- L,
30
- {
31
- activeTab: l,
32
- tabs: n,
33
- size: "lg",
34
- activeLinePosition: "bottom",
35
- onTabClick: c
36
- }
37
- ) })
24
+ children: /* @__PURE__ */ o.jsx("div", { ref: r, className: s.tabsTape, children: /* @__PURE__ */ o.jsx(L, { activeTab: l, tabs: n, size: "lg", activeLinePosition: "bottom", onTabClick: c }) })
38
25
  }
39
26
  );
40
27
  }
@@ -12,5 +12,5 @@ type Props = {
12
12
  iconPosition?: 'left' | 'right';
13
13
  onClick: (value: string) => void;
14
14
  };
15
- export declare const Tag: ({ value, children, active, disabled, size, prefixIcon, suffixIcon, onClick, }: Props) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const Tag: ({ value, children, active, disabled, size, prefixIcon, suffixIcon, onClick }: Props) => import("react/jsx-runtime").JSX.Element;
16
16
  export {};
@@ -1,35 +1,21 @@
1
1
  import { j as s } from "../../_virtual/jsx-runtime.es.js";
2
- import t from "../../styles/typography.module.css.es.js";
3
- import { cn as d } from "../../utils/cn.es.js";
2
+ import o from "../../styles/typography.module.css.es.js";
3
+ import { cn as j } from "../../utils/cn.es.js";
4
4
  import { Icon as e } from "../Icon/Icon.es.js";
5
- import r from "./tag.module.css.es.js";
6
- const j = {
7
- md: t.labelMd,
8
- lg: t.labelLg
9
- }, S = ({
10
- value: n,
11
- children: c,
12
- active: l,
13
- disabled: i,
14
- size: a = "md",
15
- prefixIcon: m,
16
- suffixIcon: o,
17
- onClick: p
18
- }) => /* @__PURE__ */ s.jsx(
5
+ import m from "./tag.module.css.es.js";
6
+ const p = {
7
+ md: o.labelMd,
8
+ lg: o.labelLg
9
+ }, S = ({ value: l, children: n, active: c, disabled: i, size: r = "md", prefixIcon: t, suffixIcon: a, onClick: d }) => /* @__PURE__ */ s.jsx(
19
10
  "button",
20
11
  {
21
- className: d(
22
- r.tag,
23
- j[a],
24
- { [r.active]: l },
25
- r[a]
26
- ),
12
+ className: j(m.tag, p[r], { [m.active]: c }, m[r]),
27
13
  disabled: i,
28
- onClick: () => p(n),
29
- children: /* @__PURE__ */ s.jsxs("div", { className: r.content, children: [
30
- m && /* @__PURE__ */ s.jsx("div", { className: r.iconWrap, children: /* @__PURE__ */ s.jsx(e, { name: m }) }),
31
- /* @__PURE__ */ s.jsx("p", { children: c }),
32
- o && /* @__PURE__ */ s.jsx("div", { className: r.iconWrap, children: /* @__PURE__ */ s.jsx(e, { name: o }) })
14
+ onClick: () => d(l),
15
+ children: /* @__PURE__ */ s.jsxs("div", { className: m.content, children: [
16
+ t && /* @__PURE__ */ s.jsx("div", { className: m.iconWrap, children: /* @__PURE__ */ s.jsx(e, { name: t }) }),
17
+ /* @__PURE__ */ s.jsx("p", { children: n }),
18
+ a && /* @__PURE__ */ s.jsx("div", { className: m.iconWrap, children: /* @__PURE__ */ s.jsx(e, { name: a }) })
33
19
  ] })
34
20
  }
35
21
  );
@@ -18,12 +18,7 @@ const f = ({
18
18
  i,
19
19
  {
20
20
  ...d,
21
- className: v(
22
- t.button,
23
- x,
24
- j,
25
- p
26
- ),
21
+ className: v(t.button, x, j, p),
27
22
  disabled: e,
28
23
  "data-hide-on": l,
29
24
  children: /* @__PURE__ */ s.jsxs("div", { className: t.content, children: [
@@ -1,35 +1,22 @@
1
- import { j as y } from "../../_virtual/jsx-runtime.es.js";
1
+ import { j as C } from "../../_virtual/jsx-runtime.es.js";
2
2
  import t from "../../styles/typography.module.css.es.js";
3
- import { cn as C } from "../../utils/cn.es.js";
3
+ import { cn as y } from "../../utils/cn.es.js";
4
4
  import { getMemoizedColorStyles as g } from "./Typography.service.es.js";
5
5
  const u = ({
6
6
  defaultVariant: o,
7
- children: l,
7
+ children: a,
8
8
  className: m = "",
9
9
  weight: e,
10
- emphasis: r = !1,
10
+ emphasis: l = !1,
11
11
  as: i = "span",
12
- mobileVariant: a,
12
+ mobileVariant: r,
13
13
  color: p
14
14
  }) => {
15
15
  const c = t[o] || "";
16
16
  let s = e;
17
- r && !e && (s = "medium");
18
- const n = s ? t[`weight${s.charAt(0).toUpperCase()}${s.slice(1)}`] : "", h = o.startsWith("label") && r ? t.labelEmphasis : "", f = a ? t[`mobile__${a}`] : "";
19
- return /* @__PURE__ */ y.jsx(
20
- i,
21
- {
22
- style: g(p),
23
- className: C(
24
- c,
25
- n,
26
- h,
27
- f,
28
- m
29
- ),
30
- children: l
31
- }
32
- );
17
+ l && !e && (s = "medium");
18
+ const n = s ? t[`weight${s.charAt(0).toUpperCase()}${s.slice(1)}`] : "", f = o.startsWith("label") && l ? t.labelEmphasis : "", h = r ? t[`mobile__${r}`] : "";
19
+ return /* @__PURE__ */ C.jsx(i, { style: g(p), className: y(c, n, f, h, m), children: a });
33
20
  };
34
21
  export {
35
22
  u as Typography
@@ -1,5 +1,3 @@
1
- export { Typography } from './Typography';
2
- export type { TypographyVariant, TypographyProps } from './Typography';
3
1
  export { Button } from './Button';
4
2
  export { Label } from './Label';
5
3
  export type { LabelColor } from './Label';
@@ -13,7 +11,7 @@ export { Icon, EIconName } from './Icon';
13
11
  export { ProductGalleryCard } from './ProductGalleryCard';
14
12
  export type { TProductGalleryCardView } from './ProductGalleryCard';
15
13
  export { HighlightedTitle } from './HighlightedTitle';
16
- export { Callback } from './Callback';
14
+ export { Callback, type CallbackProps } from './Callback';
17
15
  export { IconButton } from './IconButton';
18
16
  export type { CallbackSize } from './Callback';
19
17
  export { FilterMenu } from './FilterMenu';
@@ -24,3 +22,6 @@ export type { TProductGalleryProps } from './ProductGallery';
24
22
  export { ProgressButton } from './ProgressButton';
25
23
  export type { ProgressButtonProps } from './ProgressButton';
26
24
  export { TextButton } from './TextButton';
25
+ export { Typography } from './Typography';
26
+ export type { TypographyVariant, TypographyProps } from './Typography';
27
+ export { StepsCarousel, type TStepsCarouselView } from './StepsCarousel';