rez-table-listing-mui 1.3.47 → 1.3.49

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez-table-listing-mui",
3
- "version": "1.3.47",
3
+ "version": "1.3.49",
4
4
  "type": "module",
5
5
  "description": "A rez table listing component built on TanStack Table",
6
6
  "main": "dist/index.js",
@@ -14,7 +14,7 @@ const InfoAlert = ({
14
14
  width = "100%",
15
15
  top = 10,
16
16
  color = "#088AB2",
17
- zIndex = 0,
17
+ zIndex = -1,
18
18
  position = "absolute",
19
19
  }: InfoAlertProps) => {
20
20
  return (
@@ -29,7 +29,9 @@ const InfoAlert = ({
29
29
  top,
30
30
  }}
31
31
  >
32
- <Alert severity="info">{message}</Alert>
32
+ <Alert sx={{ borderRadius: "12px 12px 0 0 !important" }} severity="info">
33
+ {message}
34
+ </Alert>
33
35
  </Box>
34
36
  );
35
37
  };
@@ -100,7 +100,16 @@ const ListingValues = ({
100
100
  <Loader />
101
101
  ) : (
102
102
  <>
103
- <Box sx={{ p: 2, zIndex: 10 }}>
103
+ <Box
104
+ sx={{
105
+ p: 2,
106
+ border: "1px solid #1a191934",
107
+ backgroundColor: "#fdfdfc",
108
+ borderRadius: "12px",
109
+ top: 2,
110
+ height: "100%",
111
+ }}
112
+ >
104
113
  <Box sx={listingValuesStyles.headerContainer}>
105
114
  <Typography variant="h6" sx={listingValuesStyles.heading}>
106
115
  {headerText}
@@ -421,7 +421,7 @@ const ColumnTab = ({
421
421
  sx={{
422
422
  display: "flex",
423
423
  flexDirection: "column",
424
- gap: "0.75rem",
424
+ // gap: "0.75rem",
425
425
  height: "100%",
426
426
  position: "relative",
427
427
  }}
@@ -477,11 +477,11 @@ const ColumnTab = ({
477
477
  message={
478
478
  "Please select at least 1 value to display as tabs."
479
479
  }
480
- width={"49%"}
481
- position="absolute"
482
- color="#088AB2"
483
- top={2}
484
- zIndex={1}
480
+ width={"49.2%"}
481
+ // position="absolute"
482
+ // color="#088AB2"
483
+ top={93}
484
+ // zIndex={1}
485
485
  />
486
486
  }
487
487
  />
@@ -745,7 +745,7 @@ const QuickTab = ({
745
745
  collisionDetection={closestCenter}
746
746
  onDragEnd={handleDragEnd}
747
747
  >
748
- <Grid sx={{ mt: 2 }} container spacing={2} size={12}>
748
+ <Grid sx={{ mt: 1 }} container spacing={2} size={12}>
749
749
  <ListingValues
750
750
  buttonText="Show All"
751
751
  onClick={handleShowAll}
@@ -771,11 +771,11 @@ const QuickTab = ({
771
771
  <InfoAlert
772
772
  message="Please select at least 1 and at most 5 values to display as
773
773
  tabs."
774
- width={"49%"}
775
- position="absolute"
776
- color="#088AB2"
777
- top={10}
778
- zIndex={1}
774
+ width={"49.2%"}
775
+ // position="absolute"
776
+ // color="#088AB2"
777
+ // top={10}
778
+ zIndex={-1}
779
779
  />
780
780
  }
781
781
  />
@@ -30,7 +30,13 @@ export default function CustomToggleSwitchButton({
30
30
  ...props
31
31
  }: { buttons: ToggleButtonTabsProps[] } & ToggleButtonGroupProps) {
32
32
  return (
33
- <ToggleButtonGroup exclusive size="small" color="primary" {...props}>
33
+ <ToggleButtonGroup
34
+ exclusive
35
+ size="small"
36
+ color="primary"
37
+ sx={{ marginTop: "-4px", marginBottom: "6px" }}
38
+ {...props}
39
+ >
34
40
  {buttons.map((button) => (
35
41
  <ToggleButton
36
42
  key={button?.label}
@@ -46,11 +46,11 @@ export const dialogStyles: DialogStyleProps = {
46
46
 
47
47
  export const listingValuesStyles: ListingValuesStyleProps = {
48
48
  wrapper: {
49
- border: "0.5px solid #0E0C0B1F",
49
+ // border: "0.5px solid #0E0C0B1F",
50
50
  borderRadius: "8px",
51
- minHeight: "10rem",
51
+ // minHeight: "10rem",
52
52
  backgroundColor: "#fdfdfc",
53
- zIndex: 1,
53
+ zIndex: 10,
54
54
  },
55
55
  heading: { fontWeight: 400, color: "#0E0C0BB2", fontSize: "16px" },
56
56
  button: { fontSize: "13px", textTransform: "none", color: "#0E0C0BB2" },
@@ -91,6 +91,7 @@ export const TabsStyles: TabStyleProps = {
91
91
  mainTabSelect: {
92
92
  width: "65%",
93
93
  "& .MuiOutlinedInput-root": {
94
+ borderRadius: "6px",
94
95
  "&.Mui-focused .MuiOutlinedInput-notchedOutline": {
95
96
  borderColor: "#7A5AF8",
96
97
  },
@@ -100,6 +101,7 @@ export const TabsStyles: TabStyleProps = {
100
101
  selectDropdownSeparator: {
101
102
  width: "30%",
102
103
  "& .MuiOutlinedInput-root": {
104
+ borderRadius: "6px",
103
105
  "&.Mui-focused .MuiOutlinedInput-notchedOutline": {
104
106
  borderColor: "#7A5AF8",
105
107
  },