@acuteinfo/common-screens 1.0.46 → 1.0.48

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
@@ -17,7 +17,7 @@ import './assets/verify~MOgwPpDY.css';
17
17
  import CryptoJS from 'crypto-js';
18
18
  import './assets/styles~ILuxAzHT.css';
19
19
  import { useQuery, useMutation } from 'react-query';
20
- import BecomePartnerImg from './assets/BecomePartnerImg~cwVtJhaB.svg';
20
+ import bank_logo_default from './assets/BecomePartnerImg~cwVtJhaB.svg';
21
21
  import Waving_hand from './assets/waving-hand~JqQoivUD.png';
22
22
  import { styled } from '@mui/material/styles';
23
23
  import USER_PROFILE_DEFAULT from './assets/profile-default~evuVPsgu.png';
@@ -2051,21 +2051,21 @@ const actions = [
2051
2051
  multiple: undefined,
2052
2052
  rowDoubleClick: false,
2053
2053
  alwaysAvailable: true,
2054
- // actionTextColor: "var(--theme-color3)",
2055
- // actionBackground: "var(--theme-color2)",
2056
- // startsIcon: "West",
2057
- // rotateIcon: "scale(1.4) rotateX(-360deg)",
2054
+ actionTextColor: "var(--theme-color3)",
2055
+ actionBackground: "var(--theme-color2)",
2056
+ startsIcon: "West",
2057
+ rotateIcon: "scale(1.4) rotateX(-360deg)",
2058
2058
  },
2059
2059
  {
2060
2060
  actionName: "proceed",
2061
2061
  actionLabel: "Proceed",
2062
2062
  multiple: false,
2063
2063
  rowDoubleClick: true,
2064
- // actionTextColor: "var(--theme-color2)",
2065
- // actionBackground: "var(--theme-color3)",
2066
- // onEnterSubmit: true,
2067
- // endsIcon: "East",
2068
- // rotateIcon: "scale(1.4) rotateX(-360deg)",
2064
+ actionTextColor: "var(--theme-color2)",
2065
+ actionBackground: "var(--theme-color3)",
2066
+ onEnterSubmit: true,
2067
+ endsIcon: "East",
2068
+ rotateIcon: "scale(1.4) rotateX(-360deg)",
2069
2069
  },
2070
2070
  ];
2071
2071
  const BranchSelectionGrid = ({ selectionMode, authState, isBranchSelectedFn, isLoggedInFn, logoutFn, logos, logo, navigate, BranchSelectionGridDataApiFn, GetMenuDataApiFn, sideImage, branchSelectFn, dashboardUrl, loginUrl, appTranCd, }) => {
@@ -2203,7 +2203,7 @@ const BranchSelectionGrid = ({ selectionMode, authState, isBranchSelectedFn, isL
2203
2203
  // flexDirection: "column",
2204
2204
  justifyContent: "center",
2205
2205
  alignItems: "center",
2206
- }, children: jsx(Stack, { direction: "row", justifyContent: "flex-start", spacing: 2, children: jsx(Box, { className: classes.heading_user_img_border, children: jsx(Avatar, { className: classes.heading_user_img, alt: "Remy Sharp", src: Boolean(logos?.bank) ? logos?.bank : BecomePartnerImg }) }) }) }), jsxs(Grid, { xs: 12, sm: 3, md: 3, lg: 3, xl: 3, sx: {
2206
+ }, children: jsx(Stack, { direction: "row", justifyContent: "flex-start", spacing: 2, children: jsx(Box, { className: classes.heading_user_img_border, children: jsx(Avatar, { className: classes.heading_user_img, alt: "Remy Sharp", src: Boolean(logos?.bank) ? logos?.bank : bank_logo_default }) }) }) }), jsxs(Grid, { xs: 12, sm: 3, md: 3, lg: 3, xl: 3, sx: {
2207
2207
  display: "flex",
2208
2208
  flexDirection: "column",
2209
2209
  justifyContent: "center",
@@ -2211,16 +2211,13 @@ const BranchSelectionGrid = ({ selectionMode, authState, isBranchSelectedFn, isL
2211
2211
  display: "flex",
2212
2212
  alignItems: "center",
2213
2213
  justifyContent: "right",
2214
- }, children: [" ", jsx("div", { children: jsx("img", { src: Boolean(logos?.logo) ? logos?.logo : logo, alt: "CbsEnfinity", className: classes.logo }) })] })] }), isError ? (jsx(Fragment, { children: jsx("div", { style: { width: "100%", paddingTop: "10px" }, children: jsx(Alert, { severity: error?.severity ?? "error", errorMsg: error?.error_msg ?? "Error", errorDetail: error?.error_detail ?? "" }) }) })) : mutation.isError && mutation.error ? (jsx(Fragment, { children: jsx("div", { style: { width: "100%", paddingTop: "10px" }, children: jsx(Alert, { severity: getError.severity ?? "error", errorMsg: getError.error_msg ?? "Error", errorDetail: getError.error_detail ?? "" }) }) })) : null, jsx(GridWrapper, { finalMetaData: BranchSelectionGridMetaData, data: data ?? [], setData: () => null, actions: actions, setAction: setCurrentAction,
2215
- // controlsAtBottom={true}
2216
- // headerToolbarStyle={{
2217
- // background: "var(--theme-color2)",
2218
- // color: "black",
2219
- // padding: "0",
2220
- // }}
2221
- // onlySingleSelectionAllow={true}
2222
- // isNewRowStyle={true}
2223
- loading: isLoading || isFetching || mutation.isLoading }, `branchSelection`), isError || data?.length === 0 ? (jsx(Button, { sx: {
2214
+ }, children: [" ", jsx("div", { children: jsx("img", { src: Boolean(logos?.logo) ? logos?.logo : logo, alt: "CbsEnfinity", className: classes.logo }) })] })] }), isError ? (jsx(Fragment, { children: jsx("div", { style: { width: "100%", paddingTop: "10px" }, children: jsx(Alert, { severity: error?.severity ?? "error", errorMsg: error?.error_msg ?? "Error", errorDetail: error?.error_detail ?? "" }) }) })) : mutation.isError && mutation.error ? (jsx(Fragment, { children: jsx("div", { style: { width: "100%", paddingTop: "10px" }, children: jsx(Alert, { severity: getError.severity ?? "error", errorMsg: getError.error_msg ?? "Error", errorDetail: getError.error_detail ?? "" }) }) })) : null, jsx(GridWrapper, { finalMetaData: BranchSelectionGridMetaData, data: data ?? [], setData: () => null, actions: actions, setAction: setCurrentAction, controlsAtBottom: true, actionContextAtBottom: true, headerToolbarStyle: {
2215
+ backgroundColor: "#fff !important",
2216
+ padding: "0",
2217
+ "& .MuiTypography-root": {
2218
+ color: "black",
2219
+ }
2220
+ }, disableMultipleRowSelect: true, variant: "outlined", loading: isLoading || isFetching || mutation.isLoading, defaultSelectedRowId: authState?.user?.branchCode ?? null }, `branchSelection`), isError || data?.length === 0 ? (jsx(Button, { sx: {
2224
2221
  backgroundColor: "var(--theme-color3)",
2225
2222
  position: "absolute",
2226
2223
  right: "113px",
@@ -2446,7 +2443,6 @@ const useStyles$1 = makeStyles((theme) => ({
2446
2443
  }));
2447
2444
 
2448
2445
  const AppbarWrapper = ({ handleDrawerOpen, handleDrawerClose, open, authState, LanguageComponent, SearchComponent, dashboardUrl, logos, bankLogo, profilePic, handleLogout, handleProfile, navigate, hideGreetings, menuIconPosition = "left", }) => {
2449
- console.log(BecomePartnerImg);
2450
2446
  const classes = useStyles$1();
2451
2447
  const { t } = useTranslation();
2452
2448
  const LightTooltip = styled(({ className, ...props }) => (jsx(Tooltip, { ...props, classes: { popper: className } })))(({ theme }) => ({
@@ -2478,7 +2474,7 @@ const AppbarWrapper = ({ handleDrawerOpen, handleDrawerClose, open, authState, L
2478
2474
  }, children: [open ? (jsx(IconButton$1, { disableRipple: true, onClick: () => handleDrawerClose(), className: classes.DrawerClose_icon, children: jsx(MenuOutlinedIcon, { fontSize: "large" }) })) : (jsx(IconButton$1, { disableRipple: true, "aria-label": "open drawer", onClick: () => handleDrawerOpen(), className: classes.DrawerClose_icon, children: jsx(MenuOutlinedIcon, { fontSize: "large" }) })), jsxs("div", { children: [jsx("img", { src: Boolean(logos?.logo) ? logos?.logo : bankLogo, alt: "CbsEnfinity", className: classes.logo, onClick: (e) => {
2479
2475
  e.preventDefault();
2480
2476
  navigate(dashboardUrl ?? "./dashboard");
2481
- } }), jsx("p", { className: classes.version01, children: logos?.version })] })] }), jsx(Stack, { direction: "row", spacing: 4, mx: 2, children: jsx(Box, { className: classes.heading_user_img_border, children: jsx(Avatar, { className: classes.heading_user_img, alt: "Remy Sharp", src: Boolean(logos?.bank) ? logos?.bank : BecomePartnerImg }) }) }), jsxs(Typography, { component: "h1", variant: "h6", color: "inherit", noWrap: true, className: classes.title, children: [jsx(Box, { style: {
2477
+ } }), jsx("p", { className: classes.version01, children: logos?.version })] })] }), jsx(Stack, { direction: "row", spacing: 4, mx: 2, children: jsx(Box, { className: classes.heading_user_img_border, children: jsx(Avatar, { className: classes.heading_user_img, alt: "Remy Sharp", src: Boolean(logos?.bank) ? logos?.bank : bank_logo_default }) }) }), jsxs(Typography, { component: "h1", variant: "h6", color: "inherit", noWrap: true, className: classes.title, children: [jsx(Box, { style: {
2482
2478
  marginBottom: "8px",
2483
2479
  fontSize: "17px",
2484
2480
  color: "var(--theme-color1)",