@acuteinfo/common-screens 1.0.36 → 1.0.37

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/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import "regenerator-runtime/runtime";
2
2
  import "buffer";
3
+ import "./assets/css/index.css";
3
4
  export * from "./pages/auth/authController";
4
5
  export * from "./pages/auth/forgotPassword";
5
6
  export * from "./pages/branchSelection/branchSelectionGrid";
package/dist/index.js CHANGED
@@ -29,6 +29,36 @@ import { library } from '@fortawesome/fontawesome-svg-core';
29
29
  import { faHandsHelping, faUsers, faBars, faBalanceScale, faHandHoldingHeart, faTasks, faCog, faHome, faTh, faUsersCog, faCircle, faUserCircle, faHashtag, faThumbtack, faSquare, faLink, faQuestion, faPlus, faTable, faLocationArrow, faHeadset, faGears, faArrowDown, faArrowUp, faSpinner, faCircleExclamation, faRotateRight, faUserLock, faUserClock, faGripHorizontal, faFileLines, faGear, faHeadphones, faUsersGear, faMessage, faUnlock, faUserPlus, faUserCheck, faKey, faIdCard, faIdBadge, faCheck, faCheckDouble, faCircleCheck, faCircleXmark, faUserTag, faAddressCard, faChartColumn, faUserPen, faHandHolding, faHandHoldingMedical, faObjectGroup, faTowerCell, faTowerObservation, faBuilding, faMailBulk, faLandmarkFlag, faCreditCard, faHospitalSymbol, faPlugCircleBolt, faCodeBranch, faPersonCircleCheck, faBank, faServer, faNotesMedical, faA, faB, faC, faD, faE, faF, faG, faH, faI, faJ, faK, faL, faM, faN, faO, faP, faQ, faR, faS, faT, faU, faV, faW, faX, faY, faZ } from '@fortawesome/free-solid-svg-icons';
30
30
  import 'lodash';
31
31
 
32
+ function styleInject(css, ref) {
33
+ if ( ref === void 0 ) ref = {};
34
+ var insertAt = ref.insertAt;
35
+
36
+ if (!css || typeof document === 'undefined') { return; }
37
+
38
+ var head = document.head || document.getElementsByTagName('head')[0];
39
+ var style = document.createElement('style');
40
+ style.type = 'text/css';
41
+
42
+ if (insertAt === 'top') {
43
+ if (head.firstChild) {
44
+ head.insertBefore(style, head.firstChild);
45
+ } else {
46
+ head.appendChild(style);
47
+ }
48
+ } else {
49
+ head.appendChild(style);
50
+ }
51
+
52
+ if (style.styleSheet) {
53
+ style.styleSheet.cssText = css;
54
+ } else {
55
+ style.appendChild(document.createTextNode(css));
56
+ }
57
+ }
58
+
59
+ var css_248z$2 = ":root{--theme-color1:#07288e;--theme-color2:#fff;--theme-color3:#4263c7;--theme-color4:#eceff9;--theme-color5:linear-gradient(71.66deg,#4285f4 -2.97%,#885df5 111.3%);--theme-color6:#949597}";
60
+ styleInject(css_248z$2);
61
+
32
62
  const useStyles$3 = makeStyles((theme) => ({
33
63
  wrapper: {
34
64
  minHeight: "100vh",
@@ -588,33 +618,6 @@ const OTPModelForm = ({ classes, OTPResendRequest, handleClose, loginState, Veri
588
618
  disabled: loginState.loading, onClick: ClickEventHandler, ref: inputButtonRef, className: classes.otpButtons, children: loginState.otploading ? (jsx(CircularProgress, { size: 25, thickness: 4.6 })) : (t("otp.VerifyOTP")) })] })] }) }) }));
589
619
  };
590
620
 
591
- function styleInject(css, ref) {
592
- if ( ref === void 0 ) ref = {};
593
- var insertAt = ref.insertAt;
594
-
595
- if (!css || typeof document === 'undefined') { return; }
596
-
597
- var head = document.head || document.getElementsByTagName('head')[0];
598
- var style = document.createElement('style');
599
- style.type = 'text/css';
600
-
601
- if (insertAt === 'top') {
602
- if (head.firstChild) {
603
- head.insertBefore(style, head.firstChild);
604
- } else {
605
- head.appendChild(style);
606
- }
607
- } else {
608
- head.appendChild(style);
609
- }
610
-
611
- if (style.styleSheet) {
612
- style.styleSheet.cssText = css;
613
- } else {
614
- style.appendChild(document.createTextNode(css));
615
- }
616
- }
617
-
618
621
  var css_248z$1 = ".spinner-wrap{position:relative}.spinner-item{animation:zoom 2s linear .75s infinite;border:1px solid #949597;border-radius:50%;height:250px;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:250px}.spinner-item--2{animation-delay:1.25s}.spinner-item--3{animation-delay:1.75s}@keyframes zoom{0%{opacity:0;transform:translate(-50%,-50%) scale(.1)}50%{opacity:1}to{opacity:0;transform:translate(-50%,-50%) scale(.6)}}.image{height:50px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.progress{backdrop-filter:blur(2px) brightness(101%);border:1px solid #b0b0b0;border-radius:4px;box-shadow:0 0 3px #b0b0;margin:0 auto;width:20em}.bar{background:#4263c7;height:4px;width:65%}";
619
622
  styleInject(css_248z$1);
620
623
 
@@ -1281,7 +1284,7 @@ const AuthControllerWrapper = ({ bannerDetails, logoUrl, logoTitle, loginFn, vei
1281
1284
  }
1282
1285
  }
1283
1286
  catch (err) {
1284
- console.log("Error occurred while verifying username and password!", err);
1287
+ throw new Error("Error occurred while verifying username and password: " + err);
1285
1288
  }
1286
1289
  }
1287
1290
  else if (!Boolean(username) && !Boolean(password)) {