@ukpc-lib/react 0.3.4 → 0.3.5

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,9 +1,8 @@
1
1
  import { jsxs as N, jsx as c, Fragment as st } from "react/jsx-runtime";
2
2
  import * as F from "react";
3
3
  import So, { useState as G, useContext as be, useEffect as Q, useRef as ve, useCallback as bt, forwardRef as Eo, createElement as er, PureComponent as Co } from "react";
4
- import { Q as kn, C as Ne, p as At, S as Oo, a as No, L as To, b as Ir, u as ko, i as Mo, c as mt, d as $o, s as pt, _ as z, e as xe, P as T, g as he, f as Io, o as Ao, h as Po, j as Ro, k as Ar, l as Pr, I as Do, m as zo, n as Rr, D as Lo, q as Mn, r as $n, t as Fo, v as jo, w as Ce, x as Vo, y as gt } from "../index.module-d03675ea.js";
5
- import { G as E1, z as C1, A as O1 } from "../index.module-d03675ea.js";
6
- import { c as In } from "../index-2ca7cc99.js";
4
+ import { c as kn, Q as Mn, C as Ne, p as At, S as Oo, a as No, L as To, b as Ir, u as ko, i as Mo, d as mt, e as $o, s as pt, _ as z, f as xe, P as T, g as he, h as Io, o as Ao, j as Po, k as Ro, l as Ar, m as Pr, I as Do, n as zo, q as Rr, D as Lo, r as $n, t as In, v as Fo, w as jo, x as Ce, y as Vo, z as gt } from "../index.module-9e206368.js";
5
+ import { G as S1, A as E1, B as C1 } from "../index.module-9e206368.js";
7
6
  import Z from "moment";
8
7
  import tt from "axios";
9
8
  import "@r2wc/react-to-web-component";
@@ -76,7 +75,7 @@ const Jo = (e) => {
76
75
  display: "flex",
77
76
  width: "100%",
78
77
  height: "50px",
79
- borderBottom: `1px solid ${In.grey200}`
78
+ borderBottom: `1px solid ${kn.grey200}`
80
79
  },
81
80
  className: "tab-container__title",
82
81
  children: t.map((n, o) => /* @__PURE__ */ c(
@@ -94,8 +93,8 @@ const Jo = (e) => {
94
93
  ),
95
94
  /* @__PURE__ */ c("div", { className: "tab-content", children: t.map((n, o) => /* @__PURE__ */ c("div", { children: e.currentTab === `${n.id}` && /* @__PURE__ */ c("div", { children: n.children }) }, o)) })
96
95
  ] });
97
- }, c1 = (e) => /* @__PURE__ */ c(
98
- kn,
96
+ }, l1 = (e) => /* @__PURE__ */ c(
97
+ Mn,
99
98
  {
100
99
  autoClose: 3e3,
101
100
  hideProgressBar: !0,
@@ -106,8 +105,8 @@ const Jo = (e) => {
106
105
  style: { fontFamily: "inherit" },
107
106
  ...e
108
107
  }
109
- ), d1 = (e) => /* @__PURE__ */ c(
110
- kn,
108
+ ), c1 = (e) => /* @__PURE__ */ c(
109
+ Mn,
111
110
  {
112
111
  autoClose: 3e3,
113
112
  hideProgressBar: !0,
@@ -475,7 +474,7 @@ function ti({
475
474
  position: "absolute",
476
475
  top: "-9px",
477
476
  right: "-6px",
478
- background: `${In.dangerDark}`,
477
+ background: `${kn.dangerDark}`,
479
478
  width: "20px",
480
479
  height: "20px",
481
480
  border: "1px solid #fff",
@@ -606,7 +605,7 @@ function li(e) {
606
605
  }
607
606
  );
608
607
  }
609
- function u1({
608
+ function d1({
610
609
  logo: e,
611
610
  user: t,
612
611
  baseUrl: r,
@@ -884,7 +883,7 @@ function di({
884
883
  )
885
884
  ] }) });
886
885
  }
887
- const f1 = ({ children: e }) => /* @__PURE__ */ N(
886
+ const u1 = ({ children: e }) => /* @__PURE__ */ N(
888
887
  se,
889
888
  {
890
889
  justifyContent: "center",
@@ -1230,7 +1229,7 @@ function mi(e) {
1230
1229
  }, []);
1231
1230
  return { value: t, setValue: r, setTrue: n, setFalse: o, toggle: i };
1232
1231
  }
1233
- function h1(e) {
1232
+ function f1(e) {
1234
1233
  var t;
1235
1234
  return /* @__PURE__ */ N(Ho, { ...e.dialogProps, open: e.open, children: [
1236
1235
  !e.hideTitle && /* @__PURE__ */ N(
@@ -1284,7 +1283,7 @@ function h1(e) {
1284
1283
  )
1285
1284
  ] });
1286
1285
  }
1287
- function m1(e) {
1286
+ function h1(e) {
1288
1287
  const t = mi(typeof e == "boolean" ? e : void 0);
1289
1288
  return {
1290
1289
  setTrue: t.setTrue,
@@ -1293,7 +1292,7 @@ function m1(e) {
1293
1292
  onConfirm: typeof e != "boolean" ? e == null ? void 0 : e.onConfirm : void 0
1294
1293
  };
1295
1294
  }
1296
- const p1 = () => {
1295
+ const m1 = () => {
1297
1296
  const { t: e } = $o();
1298
1297
  return /* @__PURE__ */ c("div", { className: "unauth__container " + pt["page-container"], children: /* @__PURE__ */ N("div", { className: "unauth__main-content " + pt["page-main-content"], children: [
1299
1298
  /* @__PURE__ */ c(pi, {}),
@@ -5745,7 +5744,7 @@ const It = 37, Ul = (e, t) => {
5745
5744
  const l = a.offsetHeight;
5746
5745
  return document.body.removeChild(a), l > 21 ? It + 21 : It;
5747
5746
  };
5748
- function g1(e) {
5747
+ function p1(e) {
5749
5748
  const [t, r] = G(!1), [n, o] = G(""), [i, a] = G(""), [l, u] = G(!1), { isRequired: f = !1 } = e, h = bt(
5750
5749
  Pr.debounce((_) => {
5751
5750
  var S;
@@ -5979,7 +5978,7 @@ function g1(e) {
5979
5978
  }
5980
5979
  );
5981
5980
  }
5982
- function y1(e) {
5981
+ function g1(e) {
5983
5982
  var h;
5984
5983
  const { listProps: t } = e, [r, n] = G({
5985
5984
  initLoading: !e.disabled,
@@ -6150,7 +6149,7 @@ function ql(e) {
6150
6149
  );
6151
6150
  }
6152
6151
  const Yl = "Reset date";
6153
- function v1(e) {
6152
+ function y1(e) {
6154
6153
  var l, u;
6155
6154
  const [t, r] = G(e.value), n = !(t != null && t.startDate) || !(t != null && t.endDate) ? "" : Z(t == null ? void 0 : t.startDate).format("DD/MM/YYYY") + " ~ " + Z(t == null ? void 0 : t.endDate).format("DD/MM/YYYY");
6156
6155
  Q(() => {
@@ -6233,7 +6232,7 @@ function v1(e) {
6233
6232
  }
6234
6233
  );
6235
6234
  }
6236
- function b1(e) {
6235
+ function v1(e) {
6237
6236
  return /* @__PURE__ */ c(
6238
6237
  "svg",
6239
6238
  {
@@ -6254,7 +6253,7 @@ function b1(e) {
6254
6253
  }
6255
6254
  );
6256
6255
  }
6257
- function x1(e) {
6256
+ function b1(e) {
6258
6257
  return /* @__PURE__ */ N(
6259
6258
  "svg",
6260
6259
  {
@@ -6290,8 +6289,8 @@ function x1(e) {
6290
6289
  const _o = (e) => {
6291
6290
  "serviceWorker" in navigator && navigator.serviceWorker.register(e.path).then(function(t) {
6292
6291
  console.log("Registration successful, scope is:", t.scope), console.log("initialize service worker props ", e);
6293
- const r = Mn(
6294
- $n({
6292
+ const r = $n(
6293
+ In({
6295
6294
  apiKey: e.apiKey,
6296
6295
  authDomain: e.authDomain,
6297
6296
  projectId: e.projectId,
@@ -6345,8 +6344,8 @@ const _o = (e) => {
6345
6344
  }));
6346
6345
  };
6347
6346
  }, Kl = (e) => new Promise((t) => {
6348
- const r = Mn(
6349
- $n({
6347
+ const r = $n(
6348
+ In({
6350
6349
  apiKey: e.apiKey,
6351
6350
  authDomain: e.authDomain,
6352
6351
  projectId: e.projectId,
@@ -6425,29 +6424,29 @@ const _o = (e) => {
6425
6424
  };
6426
6425
  });
6427
6426
  }).catch((i) => console.log("failed: ", i)), /* @__PURE__ */ c("div", { children: "Notification" in window && Notification.permission === "default" ? /* @__PURE__ */ c(Xl, { ...e }) : "" });
6428
- }, Ql = (e, t) => So.cloneElement(t, {}, e), w1 = ({
6427
+ }, Ql = (e, t) => So.cloneElement(t, {}, e), x1 = ({
6429
6428
  children: e,
6430
6429
  providers: t
6431
6430
  }) => /* @__PURE__ */ c(st, { children: t.reduceRight(Ql, e) });
6432
6431
  export {
6433
6432
  Tn as AutocompleteOption,
6434
- x1 as CheckedIcon,
6435
- E1 as GlobalMenu,
6436
- w1 as MultiProvider,
6437
- f1 as NoData,
6433
+ b1 as CheckedIcon,
6434
+ S1 as GlobalMenu,
6435
+ x1 as MultiProvider,
6436
+ u1 as NoData,
6438
6437
  Jl as NotificationBase,
6439
- h1 as PopUpBase,
6440
- g1 as StyledAutocomplete,
6441
- v1 as StyledDateRangePicker,
6442
- c1 as ToastConfig,
6443
- d1 as ToastConfigNotification,
6444
- u1 as TopBar,
6445
- p1 as UnauthorizedPage,
6446
- b1 as UncheckedIcon,
6438
+ f1 as PopUpBase,
6439
+ p1 as StyledAutocomplete,
6440
+ y1 as StyledDateRangePicker,
6441
+ l1 as ToastConfig,
6442
+ c1 as ToastConfigNotification,
6443
+ d1 as TopBar,
6444
+ m1 as UnauthorizedPage,
6445
+ v1 as UncheckedIcon,
6447
6446
  Vo as notify,
6448
6447
  At as pushError,
6449
- C1 as pushSuccess,
6450
- O1 as pushWarning,
6451
- m1 as usePopUp,
6452
- y1 as useStyledAutocomplete
6448
+ E1 as pushSuccess,
6449
+ C1 as pushWarning,
6450
+ h1 as usePopUp,
6451
+ g1 as useStyledAutocomplete
6453
6452
  };