@zenpatient-org/healthspan-marketing-ui 0.2.44 → 0.2.45

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 r=require("react/jsx-runtime"),s=require("../../src/modules/Citation/citation.module.css"),u=require("../../utils/cn/cn.cjs.js"),i=require("../../components/Typography/Typography.cjs.js");function l({orderPadding:e,items:t,className:a}){const o=isNaN(Number(e))?0:e;return!t||t.length===0?null:r.jsx("section",{className:u.cn(s.root,a),children:t==null?void 0:t.map((c,n)=>r.jsxs(i.Typography,{as:"p",className:s.text,defaultVariant:"bodySm",mobileVariant:"bodyXs",children:[r.jsx("sup",{children:o?o+n:n+1})," ",c.item]},n))})}exports.Citation=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),c=require("../../src/modules/Citation/citation.module.css"),i=require("../../utils/cn/cn.cjs.js"),p=require("../../components/Typography/Typography.cjs.js"),l=require("../../components/Superscript/Superscript.cjs.js");function y({orderPadding:e,items:t,className:u}){const n=isNaN(Number(e))?0:e;return!t||t.length===0?null:r.jsx("section",{className:i.cn(c.root,u),children:t==null?void 0:t.map((a,o)=>{const s=n?n+o:o+1;return r.jsxs(p.Typography,{as:"p",className:c.text,defaultVariant:"bodySm",mobileVariant:"bodyXs",children:[r.jsx(l.Superscript,{value:s.toString()})," ",a.item]},s)})})}exports.Citation=y;
@@ -1,15 +1,29 @@
1
- import { jsx as n, jsxs as c } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as m } from "react/jsx-runtime";
2
2
  import l from "../../modules/Citation/citation.module.css";
3
- import { cn as m } from "../../utils/cn/cn.es.js";
4
- import { Typography as e } from "../../components/Typography/Typography.es.js";
5
- function y({ orderPadding: t, items: r, className: p }) {
6
- const a = isNaN(Number(t)) ? 0 : t;
7
- return !r || r.length === 0 ? null : /* @__PURE__ */ n("section", { className: m(l.root, p), children: r == null ? void 0 : r.map((s, o) => /* @__PURE__ */ c(e, { as: "p", className: l.text, defaultVariant: "bodySm", mobileVariant: "bodyXs", children: [
8
- /* @__PURE__ */ n("sup", { children: a ? a + o : o + 1 }),
9
- " ",
10
- s.item
11
- ] }, o)) });
3
+ import { cn as s } from "../../utils/cn/cn.es.js";
4
+ import { Typography as c } from "../../components/Typography/Typography.es.js";
5
+ import { Superscript as u } from "../../components/Superscript/Superscript.es.js";
6
+ function x({ orderPadding: t, items: r, className: p }) {
7
+ const o = isNaN(Number(t)) ? 0 : t;
8
+ return !r || r.length === 0 ? null : /* @__PURE__ */ e("section", { className: s(l.root, p), children: r == null ? void 0 : r.map((i, a) => {
9
+ const n = o ? o + a : a + 1;
10
+ return /* @__PURE__ */ m(
11
+ c,
12
+ {
13
+ as: "p",
14
+ className: l.text,
15
+ defaultVariant: "bodySm",
16
+ mobileVariant: "bodyXs",
17
+ children: [
18
+ /* @__PURE__ */ e(u, { value: n.toString() }),
19
+ " ",
20
+ i.item
21
+ ]
22
+ },
23
+ n
24
+ );
25
+ }) });
12
26
  }
13
27
  export {
14
- y as Citation
28
+ x as Citation
15
29
  };
@@ -1,6 +1,6 @@
1
1
  .root {
2
2
  width: 100%;
3
- padding: 48px 10vw;
3
+ padding: 16px 10vw 48px 10vw;
4
4
  max-width: var(--content-max-width);
5
5
  margin: 0 auto;
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.2.44",
3
+ "version": "0.2.45",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",