@acuteinfo/common-screens 1.0.31 → 1.0.32

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.js CHANGED
@@ -326,7 +326,7 @@ const UsernamePasswordField = ({ classes, loginState, verifyUsernamePassword, fo
326
326
  height: loginState.loading ? "40px" : "100%",
327
327
  width: loginState.loading ? "0px" : "100%",
328
328
  minWidth: loginState.loading ? "40px" : "80px",
329
- }, fullWidth: true, disabled: loginState.loading, onClick: () => verifyUsernamePassword((input.userName || "").toLowerCase(), input.password), ref: inputButtonRef, children: loginState.loading ? (jsx(CircularProgress, { size: 25, thickness: 4.6 })) : (t("Next")) }) }) })] })] }) }) }));
329
+ }, fullWidth: true, disabled: loginState.loading, onClick: () => verifyUsernamePassword((input.userName || "").toLowerCase(), input.password), ref: inputButtonRef, endicon: loginState.loading ? undefined : "East", rotateIcon: "scale(1.4) rotateX(360deg)", children: loginState.loading ? (jsx(CircularProgress, { size: 25, thickness: 4.6 })) : (t("Next")) }) }) })] })] }) }) }));
330
330
  };
331
331
 
332
332
  const OTPModel = ({ classes, OTPResendRequest, open, handleClose, loginState, VerifyOTP, OTPError, setOTPError, previousStep, setNewRequestID = (id) => { }, otpresendCount = 0, resendFlag, }) => {
@@ -469,12 +469,14 @@ const OTPModel = ({ classes, OTPResendRequest, open, handleClose, loginState, Ve
469
469
  "&:hover": {
470
470
  background: "var(--theme-color2) !important",
471
471
  },
472
- }, children: t("otp.Back") }), jsx(GradientButton, { style: {
472
+ },
473
+ // customstyle = {{color : "var(--theme-color3) !important"}}
474
+ starticon: "West", rotateIcon: "scale(1.4) rotateX(360deg)", children: t("otp.Back") }), jsx(GradientButton, { style: {
473
475
  borderRadius: loginState.loading ? "50%" : "10px",
474
476
  height: loginState.loading ? "40px" : "100%",
475
477
  width: loginState.loading ? "0px" : "100%",
476
478
  minWidth: loginState.loading ? "40px" : "80px",
477
- }, fullWidth: true, disabled: loginState.loading, onClick: ClickEventHandler, ref: inputButtonRef, className: classes.otpButtons, children: loginState.loading ? (jsx(CircularProgress, { size: 25, thickness: 4.6 })) : (t("otp.VerifyOTP")) })] })] }) }) }) }));
479
+ }, fullWidth: true, disabled: loginState.loading, onClick: ClickEventHandler, ref: inputButtonRef, className: classes.otpButtons, endicon: loginState.loading ? undefined : "TaskAlt", rotateIcon: "scale(1.4)", children: loginState.loading ? (jsx(CircularProgress, { size: 25, thickness: 4.6 })) : (t("otp.VerifyOTP")) })] })] }) }) }) }));
478
480
  };
479
481
  const OTPModelForm = ({ classes, OTPResendRequest, handleClose, loginState, VerifyOTP, OTPError, setOTPError, resendFlag, setNewRequestID = (id) => { }, otpresendCount = 0, }) => {
480
482
  const [OTP, setOTP] = useState("");
@@ -568,11 +570,9 @@ const OTPModelForm = ({ classes, OTPResendRequest, handleClose, loginState, Veri
568
570
  gap: "10px",
569
571
  margin: "42px 0 0 42px",
570
572
  width: "60%",
571
- }, children: [jsx(GradientButton, { fullWidth: true, disabled: loginState.otploading, onClick: handleCloseEvent, className: classes.otpButtons,
572
- // starticon={"West"}
573
+ }, children: [jsx(GradientButton, { fullWidth: true, disabled: loginState.otploading, onClick: handleCloseEvent, className: classes.otpButtons, starticon: "West",
573
574
  // color={"var(--theme-color2) !important"}
574
- // rotateIcon="scale(1.4) rotateX(360deg)"
575
- style: {
575
+ rotateIcon: "scale(1.4) rotateX(360deg)", style: {
576
576
  border: "var(--theme-color3)1px solid",
577
577
  color: "var(--theme-color2)",
578
578
  // background: "var(--theme-color2)",
@@ -689,11 +689,7 @@ const VerifyFinger = ({ classes, loginState, verifyFinger, previousStep, }) => {
689
689
  gap: "10px",
690
690
  }, children: [jsx(GradientButton, { fullWidth: true, disabled: loginState.loading, onClick: () => {
691
691
  previousStep(false, "");
692
- }, className: classes.otpButtons,
693
- // starticon={"West"}
694
- // rotateIcon="scale(1.4) rotateX(360deg)"
695
- // color={"var(--theme-color3) !important"}
696
- style: {
692
+ }, className: classes.otpButtons, starticon: "West", rotateIcon: "scale(1.4) rotateX(360deg)", textColor: "var(--theme-color3) !important", style: {
697
693
  border: "var(--theme-color3)1px solid",
698
694
  color: "var(--theme-color3)",
699
695
  background: "var(--theme-color2)",
@@ -1577,9 +1573,9 @@ const ForgotPasswordFields = ({ classes, loginState, onSubmit, navigate, loginPa
1577
1573
  // fullWidth
1578
1574
  disabled: loginState.loading, onClick: () => {
1579
1575
  navigate(loginPageEndpoint);
1580
- }, children: t("backtologin") }), jsx(GradientButton, { style: { borderRadius: "10px" }, disabled: loginState.loading, onClick: () => {
1576
+ }, starticon: "West", rotateIcon: "scale(1.4) rotateX(360deg)", children: t("backtologin") }), jsx(GradientButton, { style: { borderRadius: "10px" }, disabled: loginState.loading, onClick: () => {
1581
1577
  onSubmit(input, loginState.workingState);
1582
- }, ref: inputButtonRef, children: loginState.loading ? (jsx(CircularProgress, { size: 25, thickness: 4.6 })) : (t("Next")) })] }) }) })] }) }));
1578
+ }, ref: inputButtonRef, endicon: loginState.loading ? undefined : "East", rotateIcon: "scale(1.4) rotateX(360deg)", children: loginState.loading ? (jsx(CircularProgress, { size: 25, thickness: 4.6 })) : (t("Next")) })] }) }) })] }) }));
1583
1579
  };
1584
1580
 
1585
1581
  const ValidatePassword = (pwd) => {
@@ -2835,7 +2831,7 @@ const useStylesSideBar = makeStyles((theme) => ({
2835
2831
  }));
2836
2832
 
2837
2833
  let localdrawerOpen = true;
2838
- const SideBarNav = ({ metaData, handleDrawerOpen, drawerOpen, setView, slimSize, setNewFilterData, setNewFilterView, isFromSeparetView = false, rootUrl, dashboardUrl, navigate }) => {
2834
+ const SideBarNav = ({ metaData, handleDrawerOpen, drawerOpen, setView, slimSize, setNewFilterData, setNewFilterView, isFromSeparetView = false, rootUrl, dashboardUrl, navigate, }) => {
2839
2835
  const classes = useStylesSideBar();
2840
2836
  let result = null;
2841
2837
  localdrawerOpen = drawerOpen;
@@ -2881,7 +2877,7 @@ const SeperateListView = ({ item, setView, level, classes, slimSize, setNewFilte
2881
2877
  setView(item.viewName);
2882
2878
  }, children: [jsx(Tooltip, { title: item.label, arrow: true, placement: localdrawerOpen ? "bottom-start" : "right", children: jsx("span", { children: icon }) }), (localdrawerOpen && item.label.length > 27) || !Boolean(icon) ? (jsx(Tooltip, { title: item.label, arrow: true, placement: localdrawerOpen ? "bottom-start" : "right", children: jsx(ListItemText, { primary: item.label, className: classes.link, secondary: item.secondaryLabel ?? null }) })) : localdrawerOpen ? (jsx(ListItemText, { primary: item.label, className: classes.link, secondary: item.secondaryLabel ?? null })) : null] }));
2883
2879
  };
2884
- const SingleListItem = ({ item, classes, level, slimSize, drawerOpen, rootUrl, dashboardUrl, navigate }) => {
2880
+ const SingleListItem = ({ item, classes, level, slimSize, drawerOpen, rootUrl, dashboardUrl, navigate, }) => {
2885
2881
  const isActiveMenu = isActiveMenuFromhref(window.location?.pathname ?? "", item?.href ?? "", item?.navigationProps, rootUrl, dashboardUrl);
2886
2882
  if (isActiveMenu) {
2887
2883
  // GeneralAPI.setDocumentName(item.label);
@@ -2924,7 +2920,7 @@ const SingleListItem = ({ item, classes, level, slimSize, drawerOpen, rootUrl, d
2924
2920
  }
2925
2921
  }, children: [jsx(Tooltip, { title: item.label, arrow: true, placement: localdrawerOpen ? "bottom-start" : "right", children: jsx("span", { children: icon }) }), (localdrawerOpen && item.label.length > 27) || !Boolean(icon) ? (jsx(Tooltip, { title: item.label, arrow: true, placement: localdrawerOpen ? "bottom-start" : "right", children: jsx(ListItemText, { primary: item.label, className: classes.link, secondary: item.secondaryLabel ?? null }) })) : localdrawerOpen ? (jsx(ListItemText, { primary: item.label, className: classes.link, secondary: item.secondaryLabel ?? null })) : null] }));
2926
2922
  };
2927
- const NestedListItem = ({ item, classes, level, handleDrawerOpen, drawerOpen, slimSize, rootUrl, navigate }) => {
2923
+ const NestedListItem = ({ item, classes, level, handleDrawerOpen, drawerOpen, slimSize, rootUrl, navigate, }) => {
2928
2924
  const [open, setOpen] = useState(false);
2929
2925
  const handleClick = () => {
2930
2926
  setOpen(!open);
@@ -3012,7 +3008,7 @@ const filterMetaDataByValue = (searchString, navItems, tagsToSearch) => {
3012
3008
  return newNavItems;
3013
3009
  };
3014
3010
 
3015
- const SearchViewNavigation = ({ metaData, handleDrawerOpen, drawerOpen, setView, label, icon, placeholder = "Search Reports...", rootUrl, dashboardUrl, navigate }) => {
3011
+ const SearchViewNavigation = ({ metaData, handleDrawerOpen, drawerOpen, setView, label, icon, placeholder = "Search Reports...", rootUrl, dashboardUrl, navigate, }) => {
3016
3012
  const [search, setSearch] = useState("");
3017
3013
  const filteredMetaData = useMemo(() => {
3018
3014
  return filterMetaDataByValue(search, metaData.navItems, [
@@ -3155,7 +3151,7 @@ const filterMetaData = (navItems, role, branches, company, access, products) =>
3155
3151
  };
3156
3152
 
3157
3153
  /* eslint-disable react-hooks/exhaustive-deps */
3158
- const SideBar = ({ authState, handleDrawerOpen, open, rootUrl, dashboardUrl = "dashboard", navigate }) => {
3154
+ const SideBar = ({ authState, handleDrawerOpen, open, rootUrl, dashboardUrl = "dashboard", navigate, }) => {
3159
3155
  const [view, setView] = useState("/");
3160
3156
  const [NewFilterView, setNewFilterView] = useState({});
3161
3157
  const [NewFilterData, setNewFilterData] = useState([]);