@3sc/common-component 0.0.130 → 0.0.131

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.es.js CHANGED
@@ -26735,7 +26735,7 @@ const o3 = U(ce)(({ theme: e }) => ({
26735
26735
  s(d.offsetWidth), c(d.offsetLeft);
26736
26736
  }
26737
26737
  }, [e]), /* @__PURE__ */ v.jsx(ce, { sx: { display: "flex" }, children: /* @__PURE__ */ v.jsxs(o3, { children: [
26738
- /* @__PURE__ */ v.jsx(r3, { sx: { width: r, transform: `translateX(${a}px)`, height: "2.3rem" } }),
26738
+ /* @__PURE__ */ v.jsx(r3, { sx: { width: r, transform: `translateX(${a}px)`, height: "2.5rem" } }),
26739
26739
  /* @__PURE__ */ v.jsx(
26740
26740
  bm,
26741
26741
  {
@@ -34068,16 +34068,18 @@ const w9 = ({ sortKey: e, sortDir: t, column: n }) => /* @__PURE__ */ v.jsx(v.Fr
34068
34068
  onCloseClick: a,
34069
34069
  onMergeClick: c,
34070
34070
  onExpandClick: l,
34071
- isDrawerExpanded: u
34071
+ isDrawerExpanded: u,
34072
+ styles: d
34072
34073
  }) => {
34073
- const d = it();
34074
+ console.log(d);
34075
+ const p = it();
34074
34076
  return /* @__PURE__ */ v.jsx(ce, { sx: { position: "relative", overflow: "hidden" }, children: /* @__PURE__ */ v.jsxs(Ao, { container: !0, sx: { height: "100%" }, children: [
34075
34077
  /* @__PURE__ */ v.jsx(
34076
34078
  Ao,
34077
34079
  {
34078
34080
  item: !0,
34079
34081
  sx: {
34080
- width: n ? "75%" : "100%",
34082
+ width: n ? d != null && d.drawerWidth ? `calc(${"100%" - (d == null ? void 0 : d.drawerWidth)})` : "75%" : "100%",
34081
34083
  position: "relative",
34082
34084
  zIndex: 3,
34083
34085
  height: "calc(100vh - 7rem)",
@@ -34116,9 +34118,7 @@ const w9 = ({ sortKey: e, sortDir: t, column: n }) => /* @__PURE__ */ v.jsx(v.Fr
34116
34118
  width: "100%",
34117
34119
  height: "100%",
34118
34120
  backgroundColor: "transparent",
34119
- // backdropFilter: "blur(3px)",
34120
34121
  zIndex: 4
34121
- // transition: "opacity 0.3s ease-in-out",
34122
34122
  }
34123
34123
  }
34124
34124
  )
@@ -34128,22 +34128,18 @@ const w9 = ({ sortKey: e, sortDir: t, column: n }) => /* @__PURE__ */ v.jsx(v.Fr
34128
34128
  {
34129
34129
  item: !0,
34130
34130
  sx: {
34131
- width: u ? "90%" : "25%",
34131
+ width: u ? "90%" : (d == null ? void 0 : d.drawerWidth) || "25%",
34132
34132
  position: n ? "relative" : "absolute",
34133
34133
  top: 0,
34134
34134
  right: 0,
34135
34135
  height: "calc(100vh - 7rem)",
34136
- // Full screen height
34137
- backgroundColor: d.palette.primary.notifyBackground,
34138
- // p: 2,
34136
+ backgroundColor: p.palette.primary.notifyBackground,
34139
34137
  transform: o ? "translateX(0)" : "translateX(100%)",
34140
34138
  transition: "transform 0.4s ease-in-out , width 0.4s ease-in-out",
34141
34139
  zIndex: 4,
34142
- borderLeft: `0.1rem solid ${d.palette.primary.notifyBorderColor}`,
34140
+ borderLeft: `0.1rem solid ${p.palette.primary.notifyBorderColor}`,
34143
34141
  display: "flex",
34144
- // Ensures child elements adjust properly
34145
34142
  flexDirection: "column"
34146
- // Stack elements vertically
34147
34143
  },
34148
34144
  children: [
34149
34145
  /* @__PURE__ */ v.jsxs(
@@ -34157,7 +34153,7 @@ const w9 = ({ sortKey: e, sortDir: t, column: n }) => /* @__PURE__ */ v.jsx(v.Fr
34157
34153
  paddingBottom: "0.8rem",
34158
34154
  px: 2,
34159
34155
  pt: "0.8rem",
34160
- borderBottom: (p) => `0.1rem solid ${p.palette.primary.notifyBorderColor}`
34156
+ borderBottom: (f) => `0.1rem solid ${f.palette.primary.notifyBorderColor}`
34161
34157
  },
34162
34158
  children: [
34163
34159
  !u && /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
@@ -34182,7 +34178,7 @@ const w9 = ({ sortKey: e, sortDir: t, column: n }) => /* @__PURE__ */ v.jsx(v.Fr
34182
34178
  sx: {
34183
34179
  mx: "1rem",
34184
34180
  height: "auto!important",
34185
- borderColor: d.palette.primary.notifyBorderColor
34181
+ borderColor: p.palette.primary.notifyBorderColor
34186
34182
  }
34187
34183
  }
34188
34184
  )
@@ -34206,13 +34202,13 @@ const w9 = ({ sortKey: e, sortDir: t, column: n }) => /* @__PURE__ */ v.jsx(v.Fr
34206
34202
  cursor: "pointer"
34207
34203
  },
34208
34204
  children: [
34209
- /* @__PURE__ */ v.jsx(ce, { component: "img", src: d.icons.close }),
34205
+ /* @__PURE__ */ v.jsx(ce, { component: "img", src: p.icons.close }),
34210
34206
  /* @__PURE__ */ v.jsx(
34211
34207
  jt,
34212
34208
  {
34213
34209
  sx: {
34214
34210
  fontSize: "1.2rem",
34215
- color: d.palette.primary.notifyTextColor
34211
+ color: p.palette.primary.notifyTextColor
34216
34212
  },
34217
34213
  children: r
34218
34214
  }