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

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 (25) hide show
  1. package/dist/components/index.d.ts +0 -1
  2. package/dist/healthspan-marketing-ui.css +1 -1
  3. package/dist/index.cjs.js +1 -1
  4. package/dist/index.es.js +26 -28
  5. package/dist/modules/OurProcess/OurProcess.d.ts +2 -2
  6. package/dist/modules/OurProcess/components/StepCards/StepCards.d.ts +9 -0
  7. package/dist/modules/OurProcess/components/StepCards/index.d.ts +1 -0
  8. package/dist/modules/OurProcess/types.d.ts +5 -0
  9. package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js +12 -4
  10. package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +550 -193
  11. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs.js +9 -0
  12. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.es.js +28 -0
  13. package/dist/node_modules/react/jsx-runtime.cjs.js +1 -1
  14. package/dist/node_modules/react/jsx-runtime.es.js +3 -3
  15. package/package.json +4 -4
  16. package/dist/components/StepsCarousel/StepsCarousel.cjs.js +0 -1
  17. package/dist/components/StepsCarousel/StepsCarousel.d.ts +0 -13
  18. package/dist/components/StepsCarousel/StepsCarousel.es.js +0 -71
  19. package/dist/components/StepsCarousel/index.d.ts +0 -1
  20. package/dist/components/StepsCarousel/stepsCarousel.module.css.cjs.js +0 -1
  21. package/dist/components/StepsCarousel/stepsCarousel.module.css.es.js +0 -31
  22. package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs.js +0 -9
  23. package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js +0 -35
  24. /package/dist/_virtual/{react-jsx-runtime.production.cjs.js → react-jsx-runtime.production.min.cjs.js} +0 -0
  25. /package/dist/_virtual/{react-jsx-runtime.production.es.js → react-jsx-runtime.production.min.es.js} +0 -0
@@ -0,0 +1,9 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../_virtual/react-jsx-runtime.production.min.cjs.js"),R=require("react");/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var p;function a(){if(p)return t.__exports;p=1;var f=R,c=Symbol.for("react.element"),l=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,m=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y={key:!0,ref:!0,__self:!0,__source:!0};function u(o,e,i){var r,n={},_=null,s=null;i!==void 0&&(_=""+i),e.key!==void 0&&(_=""+e.key),e.ref!==void 0&&(s=e.ref);for(r in e)d.call(e,r)&&!y.hasOwnProperty(r)&&(n[r]=e[r]);if(o&&o.defaultProps)for(r in e=o.defaultProps,e)n[r]===void 0&&(n[r]=e[r]);return{$$typeof:c,type:o,key:_,ref:s,props:n,_owner:m.current}}return t.__exports.Fragment=l,t.__exports.jsx=u,t.__exports.jsxs=u,t.__exports}exports.__require=a;
@@ -0,0 +1,28 @@
1
+ import { __exports as t } from "../../../_virtual/react-jsx-runtime.production.min.es.js";
2
+ import R from "react";
3
+ /**
4
+ * @license React
5
+ * react-jsx-runtime.production.min.js
6
+ *
7
+ * Copyright (c) Facebook, Inc. and its affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ var p;
13
+ function v() {
14
+ if (p) return t;
15
+ p = 1;
16
+ var s = R, m = Symbol.for("react.element"), l = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, a = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
17
+ function u(o, r, i) {
18
+ var e, n = {}, _ = null, f = null;
19
+ i !== void 0 && (_ = "" + i), r.key !== void 0 && (_ = "" + r.key), r.ref !== void 0 && (f = r.ref);
20
+ for (e in r) c.call(r, e) && !d.hasOwnProperty(e) && (n[e] = r[e]);
21
+ if (o && o.defaultProps) for (e in r = o.defaultProps, r) n[e] === void 0 && (n[e] = r[e]);
22
+ return { $$typeof: m, type: o, key: _, ref: f, props: n, _owner: a.current };
23
+ }
24
+ return t.Fragment = l, t.jsx = u, t.jsxs = u, t;
25
+ }
26
+ export {
27
+ v as __require
28
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.cjs2.js"),t=require("./cjs/react-jsx-runtime.production.cjs.js"),u=require("./cjs/react-jsx-runtime.development.cjs.js");var r;function o(){return r||(r=1,process.env.NODE_ENV==="production"?e.__module.exports=t.__require():e.__module.exports=u.__require()),e.__module.exports}exports.__require=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.cjs2.js"),t=require("./cjs/react-jsx-runtime.production.min.cjs.js"),u=require("./cjs/react-jsx-runtime.development.cjs.js");var r;function i(){return r||(r=1,process.env.NODE_ENV==="production"?e.__module.exports=t.__require():e.__module.exports=u.__require()),e.__module.exports}exports.__require=i;
@@ -1,9 +1,9 @@
1
1
  import { __module as e } from "../../_virtual/jsx-runtime.es2.js";
2
- import { __require as t } from "./cjs/react-jsx-runtime.production.es.js";
3
- import { __require as i } from "./cjs/react-jsx-runtime.development.es.js";
2
+ import { __require as i } from "./cjs/react-jsx-runtime.production.min.es.js";
3
+ import { __require as t } from "./cjs/react-jsx-runtime.development.es.js";
4
4
  var r;
5
5
  function m() {
6
- return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = t() : e.exports = i(), e.exports);
6
+ return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = i() : e.exports = t(), e.exports);
7
7
  }
8
8
  export {
9
9
  m as __require
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -19,8 +19,8 @@
19
19
  },
20
20
  "license": "MIT",
21
21
  "peerDependencies": {
22
- "react": "^18.0.0 || ^19.0.0",
23
- "react-dom": "^18.0.0 || ^19.0.0"
22
+ "react": "^18.0.0",
23
+ "react-dom": "^18.0.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@eslint/js": "^9.28.0",
@@ -31,7 +31,7 @@
31
31
  "@storybook/react": "^8.6.12",
32
32
  "@storybook/react-vite": "^8.6.12",
33
33
  "@storybook/test": "^8.6.12",
34
- "@types/react-dom": "^19.1.5",
34
+ "@types/react-dom": "^18.3.1",
35
35
  "@vitejs/plugin-react": "^4.4.1",
36
36
  "chromatic": "^11.28.2",
37
37
  "eslint": "^9.28.0",
@@ -1 +0,0 @@
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;
@@ -1,13 +0,0 @@
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 {};
@@ -1,71 +0,0 @@
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
- };
@@ -1 +0,0 @@
1
- export { StepsCarousel, type TStepsCarouselView } from './StepsCarousel';
@@ -1 +0,0 @@
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;
@@ -1,31 +0,0 @@
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
- };
@@ -1,9 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../_virtual/react-jsx-runtime.production.cjs.js");/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var _;function x(){if(_)return e.__exports;_=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(l,r,t){var o=null;if(t!==void 0&&(o=""+t),r.key!==void 0&&(o=""+r.key),"key"in r){t={};for(var u in r)u!=="key"&&(t[u]=r[u])}else t=r;return r=t.ref,{$$typeof:n,type:l,key:o,ref:r!==void 0?r:null,props:t}}return e.__exports.Fragment=i,e.__exports.jsx=s,e.__exports.jsxs=s,e.__exports}exports.__require=x;
@@ -1,35 +0,0 @@
1
- import { __exports as e } from "../../../_virtual/react-jsx-runtime.production.es.js";
2
- /**
3
- * @license React
4
- * react-jsx-runtime.production.js
5
- *
6
- * Copyright (c) Meta Platforms, Inc. and affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */
11
- var s;
12
- function a() {
13
- if (s) return e;
14
- s = 1;
15
- var i = Symbol.for("react.transitional.element"), _ = Symbol.for("react.fragment");
16
- function o(l, r, t) {
17
- var u = null;
18
- if (t !== void 0 && (u = "" + t), r.key !== void 0 && (u = "" + r.key), "key" in r) {
19
- t = {};
20
- for (var n in r)
21
- n !== "key" && (t[n] = r[n]);
22
- } else t = r;
23
- return r = t.ref, {
24
- $$typeof: i,
25
- type: l,
26
- key: u,
27
- ref: r !== void 0 ? r : null,
28
- props: t
29
- };
30
- }
31
- return e.Fragment = _, e.jsx = o, e.jsxs = o, e;
32
- }
33
- export {
34
- a as __require
35
- };