@xras/ui 0.1.2 → 0.1.3

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.
package/dist/xras-ui.js CHANGED
@@ -38648,10 +38648,14 @@ const dY = () => async (n, r) => {
38648
38648
  /* @__PURE__ */ C.jsx("div", { className: "col-sm-8", children: /* @__PURE__ */ C.jsx(mZ, {}) })
38649
38649
  ] }) }) : /* @__PURE__ */ C.jsx(Am, {});
38650
38650
  };
38651
- function IZ({ target: n }) {
38651
+ function IZ(n, { bootstrapFonts: r = !0, bootstrapVariables: i = !0 } = {}) {
38652
+ const u = n.attachShadow({ mode: "open" }), l = document.createElement("div"), d = document.createElement("div"), p = document.createElement("div"), y = document.createElement("link"), g = document.createElement("link"), b = import.meta.url.replace(/\/[^/]+$/, "");
38653
+ return y.rel = "stylesheet", y.href = `${b}/bootstrap.css`, g.rel = "stylesheet", g.href = `${b}/xras-ui.css`, d.appendChild(p), l.appendChild(d), u.appendChild(l), u.appendChild(y), u.appendChild(g), l.classList.add("bootstrap"), i && d.classList.add("bootstrap-variables"), r && d.classList.add("bootstrap-fonts"), p;
38654
+ }
38655
+ function AZ({ target: n }) {
38652
38656
  $s.createRoot(n).render(/* @__PURE__ */ C.jsx(dz, {}));
38653
38657
  }
38654
- function AZ({ target: n, username: r, routes: i }) {
38658
+ function NZ({ target: n, username: r, routes: i }) {
38655
38659
  i && (On.routes = i);
38656
38660
  const u = x0({
38657
38661
  reducer: {
@@ -38662,7 +38666,7 @@ function AZ({ target: n, username: r, routes: i }) {
38662
38666
  /* @__PURE__ */ C.jsx(Sm, { store: u, children: /* @__PURE__ */ C.jsx(RX, { username: r }) })
38663
38667
  );
38664
38668
  }
38665
- function NZ({ target: n }) {
38669
+ function OZ({ target: n }) {
38666
38670
  const r = {};
38667
38671
  for (let u in n.dataset)
38668
38672
  r[u] = JSON.parse(n.dataset[u]);
@@ -38688,12 +38692,12 @@ function _k() {
38688
38692
  }
38689
38693
  });
38690
38694
  }
38691
- function OZ({ target: n, routes: r }) {
38695
+ function _Z({ target: n, routes: r }) {
38692
38696
  r && (cc.routes = r), $s.createRoot(n).render(
38693
38697
  /* @__PURE__ */ C.jsx(Sm, { store: _k(), children: /* @__PURE__ */ C.jsx(Nk, {}) })
38694
38698
  );
38695
38699
  }
38696
- function _Z({ target: n, routes: r }) {
38700
+ function DZ({ target: n, routes: r }) {
38697
38701
  r && (cc.routes = r), $s.createRoot(n).render(
38698
38702
  /* @__PURE__ */ C.jsx(Sm, { store: _k(), children: /* @__PURE__ */ C.jsx(
38699
38703
  tZ,
@@ -38703,7 +38707,7 @@ function _Z({ target: n, routes: r }) {
38703
38707
  ) })
38704
38708
  );
38705
38709
  }
38706
- function DZ({
38710
+ function jZ({
38707
38711
  target: n,
38708
38712
  apiUrl: r,
38709
38713
  excludedCategories: i,
@@ -38730,10 +38734,11 @@ function DZ({
38730
38734
  );
38731
38735
  }
38732
38736
  export {
38733
- IZ as allocationsMap,
38734
- AZ as projects,
38735
- NZ as projectsBrowser,
38736
- OZ as publications,
38737
- _Z as publicationsSelect,
38738
- DZ as resourceCatalog
38737
+ AZ as allocationsMap,
38738
+ NZ as projects,
38739
+ OZ as projectsBrowser,
38740
+ _Z as publications,
38741
+ DZ as publicationsSelect,
38742
+ jZ as resourceCatalog,
38743
+ IZ as shadowTarget
38739
38744
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xras/ui",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "User interface components for XRAS",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -23,6 +23,7 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@reduxjs/toolkit": "^2.1.0",
26
+ "bootstrap": "^5.3.3",
26
27
  "immer": "^10.0.3",
27
28
  "react": "^18.2.0",
28
29
  "react-bootstrap": "^2.10.0",