@zenpatient-org/healthspan-marketing-ui 0.2.78 → 0.2.79

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react/jsx-runtime"),_=require("../../utils/cn/cn.cjs.js"),d=require("./Typography.service.cjs.js"),s=require("../../src/components/Typography/typography.module.css"),q=({defaultVariant:l,children:i,className:c="",weight:o,emphasis:a=!1,as:n="span",mobileVariant:r,color:p,id:y,align:t})=>{const u=s[l]||"";let e=o;a&&!o&&(e="medium");const g=e?s[`weight${e.charAt(0).toUpperCase()}${e.slice(1)}`]:"",h=l.startsWith("label")&&a?s.labelEmphasis:"",m=r?s[`mobile__${r}`]:"",C=t?s[`${t}Align`]:"";return b.jsx(n,{style:d.getMemoizedColorStyles(p),className:_.cn(u,g,h,m,C,c),id:y,"data-align":t,children:i})};exports.Typography=q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react/jsx-runtime"),q=require("../../utils/cn/cn.cjs.js"),T=require("./Typography.service.cjs.js"),s=require("../../src/components/Typography/typography.module.css"),$=({defaultVariant:t,children:a,className:c="",weight:l,emphasis:o=!1,as:n="span",mobileVariant:r,color:h,id:u,align:i,strikethrough:g=!1})=>{const p=s[t]||"";let e=l;o&&!l&&(e="medium");const y=e?s[`weight${e.charAt(0).toUpperCase()}${e.slice(1)}`]:"",m=t.startsWith("label")&&o?s.labelEmphasis:"",C=r?s[`mobile__${r}`]:"",b=i?s[`${i}Align`]:"",_=g?s.strikethrough:"";return f.jsx(n,{style:T.getMemoizedColorStyles(h),className:q.cn(p,y,m,C,b,_,c),id:u,children:a})};exports.Typography=$;
@@ -13,6 +13,7 @@ export interface TypographyProps {
13
13
  color?: string;
14
14
  id?: string;
15
15
  align?: 'left' | 'center' | 'right';
16
+ strikethrough?: boolean;
16
17
  }
17
- export declare const Typography: ({ defaultVariant, children, className, weight, emphasis, as: Component, mobileVariant, color, id, align, }: TypographyProps) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const Typography: ({ defaultVariant, children, className, weight, emphasis, as: Component, mobileVariant, color, id, align, strikethrough, }: TypographyProps) => import("react/jsx-runtime").JSX.Element;
18
19
  export {};
@@ -1,30 +1,38 @@
1
- import { jsx as $ } from "react/jsx-runtime";
2
- import { cn as b } from "../../utils/cn/cn.es.js";
3
- import { getMemoizedColorStyles as d } from "./Typography.service.es.js";
1
+ import { jsx as u } from "react/jsx-runtime";
2
+ import { cn as k } from "../../utils/cn/cn.es.js";
3
+ import { getMemoizedColorStyles as x } from "./Typography.service.es.js";
4
4
  import s from "../../components/Typography/typography.module.css";
5
5
  const j = ({
6
- defaultVariant: e,
6
+ defaultVariant: o,
7
7
  children: i,
8
8
  className: m = "",
9
- weight: l,
10
- emphasis: a = !1,
11
- as: p = "span",
9
+ weight: e,
10
+ emphasis: l = !1,
11
+ as: c = "span",
12
12
  mobileVariant: r,
13
- color: c,
14
- id: n,
15
- align: o
13
+ color: n,
14
+ id: p,
15
+ align: a,
16
+ strikethrough: h = !1
16
17
  }) => {
17
- const C = s[e] || "";
18
- let t = l;
19
- a && !l && (t = "medium");
20
- const f = t ? s[`weight${t.charAt(0).toUpperCase()}${t.slice(1)}`] : "", h = e.startsWith("label") && a ? s.labelEmphasis : "", g = r ? s[`mobile__${r}`] : "", y = o ? s[`${o}Align`] : "";
21
- return /* @__PURE__ */ $(
22
- p,
18
+ const C = s[o] || "";
19
+ let t = e;
20
+ l && !e && (t = "medium");
21
+ const f = t ? s[`weight${t.charAt(0).toUpperCase()}${t.slice(1)}`] : "", g = o.startsWith("label") && l ? s.labelEmphasis : "", y = r ? s[`mobile__${r}`] : "", $ = a ? s[`${a}Align`] : "", b = h ? s.strikethrough : "";
22
+ return /* @__PURE__ */ u(
23
+ c,
23
24
  {
24
- style: d(c),
25
- className: b(C, f, h, g, y, m),
26
- id: n,
27
- "data-align": o,
25
+ style: x(n),
26
+ className: k(
27
+ C,
28
+ f,
29
+ g,
30
+ y,
31
+ $,
32
+ b,
33
+ m
34
+ ),
35
+ id: p,
28
36
  children: i
29
37
  }
30
38
  );
@@ -358,6 +358,10 @@
358
358
  text-align: right;
359
359
  }
360
360
 
361
+ .strikethrough {
362
+ text-decoration: line-through;
363
+ }
364
+
361
365
  @media (width <= 768px) {
362
366
  .mobile__displayXl {
363
367
  font-family: var(--font-default), sans-serif;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.2.78",
3
+ "version": "0.2.79",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",