@zenpatient-org/healthspan-marketing-ui 0.2.2 → 0.2.4

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.
@@ -25,7 +25,6 @@
25
25
  flex-wrap: nowrap;
26
26
  overflow-y: hidden;
27
27
  overflow-x: auto;
28
- gap: 28px;
29
28
  touch-action: auto;
30
29
  pointer-events: auto;
31
30
  -webkit-overflow-scrolling: touch;
@@ -65,6 +64,7 @@
65
64
 
66
65
  .textContainer {
67
66
  opacity: 1;
67
+ transform: scaleX(1);
68
68
  pointer-events: auto;
69
69
  transition-delay: 0.18s;
70
70
  }
@@ -81,6 +81,7 @@
81
81
  }
82
82
 
83
83
  .image {
84
+ margin-inline: var(--spacing-8);
84
85
  width: 232px;
85
86
  height: 232px;
86
87
  object-fit: cover;
@@ -108,23 +109,23 @@
108
109
  content: '';
109
110
  position: absolute;
110
111
  bottom: 0;
111
- left: -14px;
112
- right: 14px;
113
- width: calc(100% + var(--spacing-28));
114
- height: var(--border-width-sm);
115
- background-color: var(--border-color-alpha-white-20);
112
+ width: 100%;
113
+ background-color: var(--color-neutral-200);
114
+ height: var(--border-width-md);
115
+ }
116
+
117
+ .root[data-scheme='dark'] .stepLabel::before {
118
+ background-color: var(--color-bg-fill-alpha-white-20);
116
119
  }
117
120
 
118
121
  .card:first-child {
119
122
  .stepLabel::before {
120
- width: calc(100% + var(--spacing-14));
121
123
  left: 0;
122
124
  }
123
125
  }
124
126
 
125
127
  .card:last-child {
126
128
  .stepLabel::before {
127
- width: calc(100% + var(--spacing-14));
128
129
  right: 0;
129
130
  }
130
131
  }
@@ -136,7 +137,7 @@
136
137
  left: 0;
137
138
  width: 100%;
138
139
  height: var(--border-width-md);
139
- background-color: var(--border-color-solar);
140
+ background-color: var(--color-neutral-200);
140
141
  transform: scaleX(0);
141
142
  transition: transform 0.4s;
142
143
  pointer-events: none;
@@ -146,6 +147,10 @@
146
147
  background-color: var(--border-color-indigo);
147
148
  }
148
149
 
150
+ .root[data-scheme='dark'] .stepLabel::after {
151
+ background-color: var(--color-solar-200);
152
+ }
153
+
149
154
  .labelText {
150
155
  display: flex;
151
156
  min-height: 28px;
@@ -160,7 +165,8 @@
160
165
  gap: var(--spacing-8);
161
166
  padding: 0 var(--spacing-24);
162
167
  opacity: 0;
163
- transition: opacity 0.2s;
168
+ transform: scaleX(0);
169
+ transition: opacity 0.4s, transform 0.2s;
164
170
  pointer-events: none;
165
171
  }
166
172
 
@@ -198,6 +204,7 @@
198
204
 
199
205
  .stepsContainer {
200
206
  min-height: 460px;
207
+ inline-padding: 0;
201
208
  }
202
209
 
203
210
  .card.cardActive {
@@ -216,7 +223,7 @@
216
223
 
217
224
  .textContainer {
218
225
  max-width: 420px;
219
- transition-delay: 0.25s;
226
+ transition-delay: 0.3s;
220
227
  }
221
228
  }
222
229
 
@@ -236,7 +243,7 @@
236
243
 
237
244
  .textContainer {
238
245
  max-width: 278px;
239
- padding: 0 var(--spacing-8);
246
+ padding: 0 var(--spacing-14);
240
247
  gap: var(--spacing-4);
241
248
  height: 101px;
242
249
  max-height: 101px;
@@ -262,10 +269,6 @@
262
269
  .root {
263
270
  padding: 0;
264
271
  }
265
-
266
- .stepsContainer {
267
- gap: 0;
268
- }
269
272
 
270
273
  .card {
271
274
  width: 100%;
@@ -155,7 +155,7 @@
155
155
 
156
156
  .hsaEligible {
157
157
  display: flex;
158
- align-items: start;
158
+ align-items: flex-start;
159
159
  gap: var(--spacing-8);
160
160
  }
161
161
 
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("../../src/modules/ScrollingText/scrollingText.module.css"),l=require("../../components/InfiniteScroll/InfiniteScroll.cjs.js"),i=require("../../components/Typography/Typography.cjs.js"),o=({label:r,url:n})=>e.jsx("a",{href:n,className:t.label,children:e.jsx(i.Typography,{defaultVariant:"labelMd",emphasis:!0,mobileVariant:"labelSm",weight:"regular",children:r})}),s=({labels:r})=>e.jsx("section",{className:t.root,children:r.length>0&&e.jsx("div",{className:t.footer,children:e.jsx(l.InfiniteScroll,{items:r,renderItem:o})})});exports.ScrollingText=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("../../src/modules/ScrollingText/scrollingText.module.css"),i=require("../../utils/cn/cn.cjs.js"),a=require("../../components/InfiniteScroll/InfiniteScroll.cjs.js"),l=require("../../components/Typography/Typography.cjs.js"),s=({label:r,url:n})=>n?e.jsx("a",{href:n,className:t.label,children:e.jsx(l.Typography,{defaultVariant:"labelMd",emphasis:!0,mobileVariant:"labelSm",weight:"regular",children:r})}):e.jsx("div",{className:i.cn(t.label,t.default),children:e.jsx(l.Typography,{defaultVariant:"labelMd",emphasis:!0,mobileVariant:"labelSm",weight:"regular",children:r})}),o=({labels:r})=>e.jsx("section",{className:t.root,children:r.length>0&&e.jsx("div",{className:t.footer,children:e.jsx(a.InfiniteScroll,{items:r,renderItem:s})})});exports.ScrollingText=o;
@@ -1,7 +1,7 @@
1
1
  export type TScrollingText = {
2
2
  labels: ReadonlyArray<{
3
3
  label: string;
4
- url: string;
4
+ url?: string;
5
5
  }>;
6
6
  };
7
7
  export declare const ScrollingText: ({ labels }: TScrollingText) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,9 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import t from "../../modules/ScrollingText/scrollingText.module.css";
3
- import { InfiniteScroll as o } from "../../components/InfiniteScroll/InfiniteScroll.es.js";
4
- import { Typography as i } from "../../components/Typography/Typography.es.js";
5
- const a = ({ label: r, url: l }) => /* @__PURE__ */ e("a", { href: l, className: t.label, children: /* @__PURE__ */ e(i, { defaultVariant: "labelMd", emphasis: !0, mobileVariant: "labelSm", weight: "regular", children: r }) }), d = ({ labels: r }) => /* @__PURE__ */ e("section", { className: t.root, children: r.length > 0 && /* @__PURE__ */ e("div", { className: t.footer, children: /* @__PURE__ */ e(o, { items: r, renderItem: a }) }) });
2
+ import l from "../../modules/ScrollingText/scrollingText.module.css";
3
+ import { cn as i } from "../../utils/cn/cn.es.js";
4
+ import { InfiniteScroll as n } from "../../components/InfiniteScroll/InfiniteScroll.es.js";
5
+ import { Typography as a } from "../../components/Typography/Typography.es.js";
6
+ const o = ({ label: r, url: t }) => t ? /* @__PURE__ */ e("a", { href: t, className: l.label, children: /* @__PURE__ */ e(a, { defaultVariant: "labelMd", emphasis: !0, mobileVariant: "labelSm", weight: "regular", children: r }) }) : /* @__PURE__ */ e("div", { className: i(l.label, l.default), children: /* @__PURE__ */ e(a, { defaultVariant: "labelMd", emphasis: !0, mobileVariant: "labelSm", weight: "regular", children: r }) }), f = ({ labels: r }) => /* @__PURE__ */ e("section", { className: l.root, children: r.length > 0 && /* @__PURE__ */ e("div", { className: l.footer, children: /* @__PURE__ */ e(n, { items: r, renderItem: o }) }) });
6
7
  export {
7
- d as ScrollingText
8
+ f as ScrollingText
8
9
  };
@@ -42,6 +42,10 @@
42
42
  }
43
43
  }
44
44
 
45
+ .default {
46
+ cursor: default;
47
+ }
48
+
45
49
  @media screen and (width <= 768px) {
46
50
  .root {
47
51
  padding: 40px 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",