@zenpatient-org/healthspan-marketing-ui 0.2.31 → 0.2.33
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
|
|
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,14 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { cn as
|
|
1
|
+
import { jsx as n, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import l from "../../modules/Citation/citation.module.css";
|
|
3
|
+
import { cn as m } from "../../utils/cn/cn.es.js";
|
|
4
4
|
import { Typography as e } from "../../components/Typography/Typography.es.js";
|
|
5
|
-
function y({ orderPadding:
|
|
6
|
-
const
|
|
7
|
-
return !r || r.length === 0 ? null : /* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */
|
|
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
9
|
" ",
|
|
10
|
-
|
|
11
|
-
] },
|
|
10
|
+
s.item
|
|
11
|
+
] }, o)) });
|
|
12
12
|
}
|
|
13
13
|
export {
|
|
14
14
|
y as Citation
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.dot {
|
|
37
|
-
height:
|
|
38
|
-
width:
|
|
37
|
+
height: var(--spacing-16, 16px);
|
|
38
|
+
width: var(--spacing-16, 16px);
|
|
39
39
|
color: var(--color-text-primary-disabled);
|
|
40
40
|
border-radius: 50%;
|
|
41
41
|
display: inline-block;
|
|
@@ -93,7 +93,6 @@
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
.alternativeContent, .featuredContent {
|
|
96
|
-
cursor: pointer;
|
|
97
96
|
width: 100%;
|
|
98
97
|
display: grid;
|
|
99
98
|
grid-template-columns: 1fr;
|
|
@@ -258,8 +257,8 @@
|
|
|
258
257
|
}
|
|
259
258
|
|
|
260
259
|
.closeIcon {
|
|
261
|
-
width:
|
|
262
|
-
height:
|
|
260
|
+
width: var(--spacing-28, 28px);
|
|
261
|
+
height: var(--spacing-28, 28px);
|
|
263
262
|
padding-inline: 8px;
|
|
264
263
|
color: inherit;
|
|
265
264
|
}
|