mc-react-library 0.4.0 → 0.4.1

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 (2) hide show
  1. package/dist/main.js +7 -7
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -631,21 +631,21 @@ const ri = "_archive_doicitation_5woyi_1", ii = "_doi_badge_5woyi_8", oi = "_doi
631
631
  doi_badge: ii,
632
632
  doi_left: oi,
633
633
  doi_right: si
634
- };
635
- function Js(t) {
636
- return /* @__PURE__ */ T.jsx("div", { className: we.archive_doicitation, children: /* @__PURE__ */ T.jsxs("span", { className: we.doi_badge, children: [
637
- /* @__PURE__ */ T.jsx("span", { className: we.doi_left, children: "DOI" }),
634
+ }, Js = ({ doi_id: t, doi: e, label: n = "DOI" }) => {
635
+ let r = "";
636
+ return t != null ? r = `10.24435/materialscloud:${t}` : r = e, /* @__PURE__ */ T.jsx("div", { className: we.archive_doicitation, children: /* @__PURE__ */ T.jsxs("span", { className: we.doi_badge, children: [
637
+ /* @__PURE__ */ T.jsx("span", { className: we.doi_left, children: n }),
638
638
  /* @__PURE__ */ T.jsx(
639
639
  "a",
640
640
  {
641
- href: `https://doi.org/10.24435/materialscloud:${t.doi_id}`,
641
+ href: `https://doi.org/10.24435/materialscloud:${t}`,
642
642
  className: we.doi_right,
643
643
  target: "_blank",
644
- children: `10.24435/materialscloud:${t.doi_id}`
644
+ children: r
645
645
  }
646
646
  )
647
647
  ] }) });
648
- }
648
+ };
649
649
  function Je(t, e) {
650
650
  if (t.contains) return t.contains(e);
651
651
  if (t.compareDocumentPosition) return t === e || !!(t.compareDocumentPosition(e) & 16);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mc-react-library",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
5
  "module": "dist/main.js",
6
6
  "files": [