@salesgenterp/ui-components 0.4.320 → 0.4.321

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,6 +1,6 @@
1
1
  import { Button, CircularProgress, TextField, Grid, Typography, Stack, Skeleton as Skeleton$1, CssBaseline, Box, InputAdornment, IconButton, TableHead, TableRow, Paper, TableContainer as TableContainer$2, Table, TableBody, TableCell, TablePagination, Dialog, DialogContent, DialogActions, DialogTitle, RadioGroup, Radio, FormControlLabel, FormControl, FormLabel, FormHelperText, Select as Select$1, InputLabel, MenuItem, CardMedia, Divider, CardContent, ListItemIcon, ListItem, Collapse, List, ListItemText, Checkbox, Card, CardHeader, Tabs, Tab, Toolbar, Drawer, Tooltip, Avatar as Avatar$1, alpha, Stepper, Step, StepLabel, StepContent } from '@mui/material';
2
2
  import React__default, { useState, useEffect, forwardRef, createElement, memo, useCallback, useRef } from 'react';
3
- import { AiOutlineHome, AiOutlineRight, AiOutlinePlus, AiOutlineRise, AiOutlineShoppingCart, AiOutlineHeart, AiOutlineCreditCard, AiOutlineFileText, AiOutlineSetting, AiOutlineLeft, AiOutlineMinus, AiOutlineClose, AiOutlineDelete, AiOutlineCheckCircle, AiOutlineCheck } from 'react-icons/ai';
3
+ import { AiOutlineHome, AiOutlineRight, AiOutlinePlus, AiOutlineRise, AiOutlineShoppingCart, AiOutlineHeart, AiOutlineCreditCard, AiOutlineFileText, AiOutlineSetting, AiOutlineLeft, AiOutlineMinus, AiOutlineClose, AiOutlineDelete, AiOutlineShop, AiOutlineCheckCircle, AiOutlineCheck } from 'react-icons/ai';
4
4
  import styled, { ThemeProvider } from 'styled-components';
5
5
  import axios from 'axios';
6
6
  import { isEmpty, get, template, isPlainObject, includes, values, cloneDeep, omit, sortBy, uniqBy, filter, isObject, isNumber, remove, sumBy } from 'lodash';
@@ -23,7 +23,7 @@ import moment$1 from 'moment/moment';
23
23
  import Cards from 'react-credit-cards';
24
24
  import Alert from '@mui/material/Alert';
25
25
  import AlertTitle from '@mui/material/AlertTitle';
26
- import { HiOutlineTruck, HiOutlineChevronDown } from 'react-icons/hi';
26
+ import { HiOutlineTruck, HiOutlineLocationMarker, HiOutlineChevronDown } from 'react-icons/hi';
27
27
  import { BsBoxSeam, BsCartX } from 'react-icons/bs';
28
28
  import { TfiWallet } from 'react-icons/tfi';
29
29
  import { GoPackage } from 'react-icons/go';
@@ -8966,19 +8966,23 @@ var SwitchUser = function SwitchUser(_ref) {
8966
8966
  theme: colors
8967
8967
  }, /*#__PURE__*/React__default.createElement(CssBaseline, null), /*#__PURE__*/React__default.createElement(RootContainer$4, null, /*#__PURE__*/React__default.createElement("h2", {
8968
8968
  style: {
8969
- fontWeight: 500,
8969
+ fontWeight: 700,
8970
+ fontSize: '2.5rem',
8970
8971
  marginBottom: '2rem'
8971
8972
  }
8972
8973
  }, "Select/Switch User"), /*#__PURE__*/React__default.createElement(Grid, {
8973
8974
  container: true,
8974
- justifyContent: "center",
8975
- spacing: 3
8975
+ spacing: 4
8976
8976
  }, customerData === null || customerData === void 0 ? void 0 : (_customerData$filter = customerData.filter) === null || _customerData$filter === void 0 ? void 0 : (_customerData$filter$ = _customerData$filter.call(customerData, function (item) {
8977
8977
  return item;
8978
8978
  })) === null || _customerData$filter$ === void 0 ? void 0 : _customerData$filter$.map(function (item, i) {
8979
8979
  return /*#__PURE__*/React__default.createElement(Grid, {
8980
8980
  key: i,
8981
- item: true
8981
+ item: true,
8982
+ xs: 12,
8983
+ sm: 6,
8984
+ md: 4,
8985
+ lg: 3
8982
8986
  }, /*#__PURE__*/React__default.createElement(CustomerContainer, {
8983
8987
  onClick: function onClick() {
8984
8988
  return onSelectCustomer(item);
@@ -8986,15 +8990,28 @@ var SwitchUser = function SwitchUser(_ref) {
8986
8990
  }, /*#__PURE__*/React__default.createElement(Avatar, {
8987
8991
  userName: ((item === null || item === void 0 ? void 0 : item.firstName) || '') + " " + ((item === null || item === void 0 ? void 0 : item.lastName) || ''),
8988
8992
  sx: {
8989
- width: 80,
8990
- height: 80,
8993
+ width: '8rem',
8994
+ height: '8rem',
8991
8995
  fontSize: '2.4rem'
8996
+ },
8997
+ style: {
8998
+ backgroundColor: '#00000040'
8992
8999
  }
8993
- }), /*#__PURE__*/React__default.createElement("p", null, ((item === null || item === void 0 ? void 0 : item.firstName) || '') + " " + ((item === null || item === void 0 ? void 0 : item.lastName) || '')), /*#__PURE__*/React__default.createElement("p", null, item === null || item === void 0 ? void 0 : item.company), /*#__PURE__*/React__default.createElement("p", null, item === null || item === void 0 ? void 0 : item.dbaName)));
9000
+ }), /*#__PURE__*/React__default.createElement("p", {
9001
+ className: "name"
9002
+ }, ((item === null || item === void 0 ? void 0 : item.firstName) || '') + " " + ((item === null || item === void 0 ? void 0 : item.lastName) || '')), /*#__PURE__*/React__default.createElement("p", {
9003
+ className: "infoDetails"
9004
+ }, /*#__PURE__*/React__default.createElement(HiOutlineLocationMarker, null), /*#__PURE__*/React__default.createElement("span", null, item === null || item === void 0 ? void 0 : item.company), ' '), /*#__PURE__*/React__default.createElement("p", {
9005
+ className: "infoDetails"
9006
+ }, /*#__PURE__*/React__default.createElement(AiOutlineShop, null), /*#__PURE__*/React__default.createElement("span", null, (item === null || item === void 0 ? void 0 : item.dbaName) || (item === null || item === void 0 ? void 0 : item.company)))));
8994
9007
  }))));
8995
9008
  };
8996
- var RootContainer$4 = styled.div(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose(["\n margin: auto;\n text-align: center;\n padding: 2.4rem;\n"])));
8997
- var CustomerContainer = styled.div(_templateObject2$t || (_templateObject2$t = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: flex;\n flex-direction: column;\n align-items: center;\n transition: all 0.5s;\n &:hover {\n transform: scale(1.05);\n }\n"])));
9009
+ var RootContainer$4 = styled.div(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose(["\n margin: auto;\n padding: 2.4rem;\n max-width: 1920px;\n"])));
9010
+ var CustomerContainer = styled.div(_templateObject2$t || (_templateObject2$t = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n transition: all 0.5s;\n padding: 1.1rem;\n border-radius: 1rem;\n box-shadow: 2px 2px 6px 0px #00000020;\n &:hover {\n transform: scale(1.05);\n }\n .name {\n color: ", ";\n font-size: 2.5rem;\n font-weight: 700;\n }\n .infoDetails {\n font-size: 1.1rem;\n color: #46464680;\n margin: 1rem 0;\n display: flex;\n align-items: center;\n svg {\n color: ", ";\n font-size: 1.5rem;\n margin-right: 0.5rem;\n }\n }\n"])), function (props) {
9011
+ return props.theme.primaryColor || '#000000d9';
9012
+ }, function (props) {
9013
+ return props.theme.primaryColor || '#000000d9';
9014
+ });
8998
9015
 
8999
9016
  var _templateObject$I, _templateObject2$u;
9000
9017
  var ThankYou = function ThankYou(_ref) {