@ukpc-lib/react 0.9.7 → 0.9.9

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,8 +1,8 @@
1
1
  import { jsxs as N, Fragment as be, jsx as c } from "react/jsx-runtime";
2
2
  import * as L from "react";
3
3
  import ge, { useState as G, useContext as _e, useEffect as Q, useCallback as We, useRef as ve, forwardRef as Eo, createElement as tr, PureComponent as Co } from "react";
4
- import { c as Te, a as Ke, C as ke, p as Oo, L as Pr, u as No, b as To, S as ko, d as Io, e as $o, Q as $n, f as yt, g as hr, h as Mo, s as vt, _ as z, i as Se, P as k, j as he, k as Ao, o as Po, l as Ro, m as Do, n as Rr, q as wt, r as Dr, I as zo, t as Fo, v as zr, D as Lo, w as Mn, x as An, y as jo, z as Vo, A as Ho, B as rt } from "../index.module-46a42fa7.js";
5
- import { H as Lc, G as jc, K as Vc, E as Hc, F as Bc, J as Wc } from "../index.module-46a42fa7.js";
4
+ import { c as Te, a as Ke, C as ke, p as Oo, L as Pr, u as No, b as To, S as ko, d as Io, e as $o, Q as $n, f as yt, g as hr, h as Mo, s as vt, _ as z, i as Se, P as k, j as he, k as Ao, o as Po, l as Ro, m as Do, n as Rr, q as wt, r as Dr, I as zo, t as Fo, v as zr, D as Lo, w as Mn, x as An, y as jo, z as Vo, A as Ho, B as rt } from "../index.module-54e27930.js";
5
+ import { H as Lc, G as jc, K as Vc, E as Hc, F as Bc, J as Wc } from "../index.module-54e27930.js";
6
6
  import Z from "moment";
7
7
  import { Stack as te, Dialog as Bo, DialogTitle as Wo, Typography as ye, DialogContent as Uo, DialogActions as Yo, Button as kt, Box as qo, ClickAwayListener as Go, TextField as Pn, IconButton as Ko, CircularProgress as Zo, Fade as Jo, Paper as Xo, Checkbox as Qo } from "@mui/material";
8
8
  import "@r2wc/react-to-web-component";
@@ -698,16 +698,16 @@ function wi({ classNames: e = "", ...t }) {
698
698
  notiprops: d,
699
699
  isBrand: u,
700
700
  logout: h
701
- } = t, m = r || "https://ukpcsaprod.blob.core.windows.net/lib/images/logo-header.png", g = {
701
+ } = t, m = {
702
702
  ...a,
703
703
  color: (s == null ? void 0 : s.headerTextColor) || "white",
704
704
  backgroundColor: (s == null ? void 0 : s.headerBgColor) || "black"
705
- }, [b, y] = G(!1), l = ve(null), { Term: f } = ei();
706
- console.log("term", f);
707
- const [v, w] = G(f || ""), x = yi({ baseUrl: o });
708
- console.log("searchPermission", x.hasPermission);
709
- const S = bi(o, v), p = We((_) => {
710
- w(_);
705
+ }, [g, b] = G(!1), y = ve(null), { Term: l } = ei();
706
+ console.log("term", l);
707
+ const [f, v] = G(l || ""), w = yi({ baseUrl: o });
708
+ console.log("searchPermission", w.hasPermission);
709
+ const x = bi(o, f), S = We((p) => {
710
+ v(p);
711
711
  }, []);
712
712
  return /* @__PURE__ */ N(
713
713
  ko,
@@ -727,11 +727,11 @@ function wi({ classNames: e = "", ...t }) {
727
727
  "nav",
728
728
  {
729
729
  className: `navbar-wrapper ${e}`,
730
- style: s ? g : a,
730
+ style: s ? m : a,
731
731
  children: /* @__PURE__ */ N("div", { className: "navbar-container", children: [
732
- /* @__PURE__ */ c("a", { href: "/home", className: "logo-container", children: /* @__PURE__ */ c("img", { src: m, alt: "logo-header", style: { height: "40px" } }) }),
732
+ /* @__PURE__ */ c("a", { href: "/home", className: "logo-container", children: /* @__PURE__ */ c("img", { src: r || "#", alt: " ", style: { height: "40px" } }) }),
733
733
  /* @__PURE__ */ N("div", { className: "right-side-container", children: [
734
- u && x.hasPermission ? /* @__PURE__ */ c("span", { children: /* @__PURE__ */ N(
734
+ u && w.hasPermission ? /* @__PURE__ */ c("span", { children: /* @__PURE__ */ N(
735
735
  "label",
736
736
  {
737
737
  className: "topbar-search-label",
@@ -744,14 +744,14 @@ function wi({ classNames: e = "", ...t }) {
744
744
  className: "topbar-search-input",
745
745
  id: "GlobalSearchInput",
746
746
  placeholder: "Search",
747
- onChange: (_) => {
748
- const E = _.target.value;
749
- p(E);
747
+ onChange: (p) => {
748
+ const _ = p.target.value;
749
+ S(_);
750
750
  },
751
- ref: l,
752
- value: v,
753
- onKeyDown: (_) => {
754
- _.key === "Enter" && S();
751
+ ref: y,
752
+ value: f,
753
+ onKeyDown: (p) => {
754
+ p.key === "Enter" && x();
755
755
  }
756
756
  }
757
757
  ),
@@ -794,7 +794,7 @@ function wi({ classNames: e = "", ...t }) {
794
794
  primaryColor: s == null ? void 0 : s.headerTextColor,
795
795
  avatarUrl: n == null ? void 0 : n.avatarUrl,
796
796
  userName: n == null ? void 0 : n.firstName,
797
- setShowConfirmModal: y
797
+ setShowConfirmModal: b
798
798
  }
799
799
  ),
800
800
  /* @__PURE__ */ c(
@@ -823,8 +823,8 @@ function wi({ classNames: e = "", ...t }) {
823
823
  /* @__PURE__ */ c(
824
824
  $o,
825
825
  {
826
- isOpen: b,
827
- onClose: () => y(!1),
826
+ isOpen: g,
827
+ onClose: () => b(!1),
828
828
  onConfirm: h
829
829
  }
830
830
  )