@3sc/common-component 0.0.407 → 0.0.408

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
@@ -43753,78 +43753,78 @@ nh.propTypes = {
43753
43753
  minWidth: "number",
43754
43754
  className: "string"
43755
43755
  };
43756
- const rh = ye.memo(
43757
- function({ isRenderCellContent: t, column: n, row: r, parent: o }) {
43758
- const i = r[n.key], a = typeof i == "string" && i.length > 20;
43759
- return t && (n != null && n.cellRenderer) ? /* @__PURE__ */ g.jsx(
43760
- Se,
43761
- {
43762
- sx: {
43763
- display: "flex",
43764
- alignItems: "center",
43765
- justifyContent: "center",
43766
- width: "100%",
43767
- overflow: "hidden",
43768
- whiteSpace: "nowrap",
43769
- textOverflow: "ellipsis",
43770
- fontSize: "1.1rem"
43771
- },
43772
- children: n.cellRenderer(r, { column: n, parent: o })
43773
- }
43774
- ) : a ? /* @__PURE__ */ g.jsx(
43775
- qf,
43776
- {
43777
- title: i,
43778
- placement: "top",
43779
- componentsProps: {
43780
- tooltip: {
43781
- sx: {
43782
- fontSize: "1rem",
43783
- padding: "0.5rem 1rem",
43784
- boxShadow: "0 2px 8px rgba(0,0,0,0.3)"
43785
- }
43786
- }
43787
- },
43788
- children: /* @__PURE__ */ g.jsx(
43789
- Se,
43790
- {
43791
- sx: {
43792
- maxWidth: "auto",
43793
- whiteSpace: "normal"
43794
- },
43795
- children: /* @__PURE__ */ g.jsx(
43796
- it,
43797
- {
43798
- sx: {
43799
- fontSize: "1.1rem",
43800
- overflow: "hidden",
43801
- whiteSpace: "nowrap",
43802
- textOverflow: "ellipsis"
43803
- },
43804
- children: i
43805
- }
43806
- )
43756
+ function rh({ isRenderCellContent: e, column: t, row: n, parent: r }) {
43757
+ const o = n[t.key], i = (o == null ? void 0 : o.length) > 20;
43758
+ return /* @__PURE__ */ g.jsx(g.Fragment, { children: e ? /* @__PURE__ */ g.jsx(
43759
+ Se,
43760
+ {
43761
+ sx: {
43762
+ display: "flex",
43763
+ alignItems: "center",
43764
+ justifyContent: "center",
43765
+ width: "100%",
43766
+ overflow: "hidden",
43767
+ whiteSpace: "nowrap",
43768
+ textOverflow: "ellipsis",
43769
+ textTransform: "none",
43770
+ fontSize: "1.1rem"
43771
+ },
43772
+ children: t == null ? void 0 : t.cellRenderer(n, { column: t, parent: r })
43773
+ }
43774
+ ) : /* @__PURE__ */ g.jsx(g.Fragment, { children: i ? /* @__PURE__ */ g.jsx(
43775
+ qf,
43776
+ {
43777
+ title: o,
43778
+ placement: "top",
43779
+ componentsProps: {
43780
+ tooltip: {
43781
+ sx: {
43782
+ fontSize: "1rem",
43783
+ padding: "0.5rem 1rem",
43784
+ boxShadow: "0 2px 8px rgba(0,0,0,0.3)"
43807
43785
  }
43808
- )
43809
- }
43810
- ) : /* @__PURE__ */ g.jsx(
43811
- Se,
43812
- {
43813
- sx: {
43814
- overflow: "hidden",
43815
- whiteSpace: "nowrap",
43816
- textOverflow: "ellipsis",
43817
- fontSize: "1.1rem",
43818
- m: 0
43819
- },
43820
- id: n.key,
43821
- component: "p",
43822
- children: i
43823
- }
43824
- );
43825
- },
43826
- (e, t) => e.row[e.column.key] === t.row[t.column.key] && e.isRenderCellContent === t.isRenderCellContent
43827
- );
43786
+ }
43787
+ },
43788
+ children: /* @__PURE__ */ g.jsx(
43789
+ Se,
43790
+ {
43791
+ sx: {
43792
+ maxWidth: "auto",
43793
+ whiteSpace: "normal"
43794
+ },
43795
+ children: /* @__PURE__ */ g.jsx(
43796
+ it,
43797
+ {
43798
+ sx: {
43799
+ fontSize: "1.1rem",
43800
+ overflow: "hidden",
43801
+ whiteSpace: "nowrap",
43802
+ textOverflow: "ellipsis",
43803
+ textTransform: "none"
43804
+ },
43805
+ children: o
43806
+ }
43807
+ )
43808
+ }
43809
+ )
43810
+ }
43811
+ ) : /* @__PURE__ */ g.jsx(
43812
+ Se,
43813
+ {
43814
+ sx: {
43815
+ overflow: "hidden",
43816
+ whiteSpace: "nowrap",
43817
+ textOverflow: "ellipsis",
43818
+ textTransform: "none",
43819
+ fontSize: "1.1rem",
43820
+ m: 0
43821
+ },
43822
+ id: t.key,
43823
+ component: "p",
43824
+ children: o
43825
+ }
43826
+ ) }) });
43827
+ }
43828
43828
  rh.propTypes = {
43829
43829
  isRenderCellContent: s.bool,
43830
43830
  column: s.object,
@@ -43992,9 +43992,10 @@ const WW = q(Xv)(({ theme: e }) => ({
43992
43992
  padding: "0rem",
43993
43993
  textAlign: "center"
43994
43994
  }
43995
- })), na = ye.memo(function({ children: t, ...n }) {
43996
- return /* @__PURE__ */ g.jsx(zW, { ...n, children: t });
43997
- });
43995
+ }));
43996
+ function na({ children: e, ...t }) {
43997
+ return /* @__PURE__ */ g.jsx(zW, { ...t, children: e });
43998
+ }
43998
43999
  na.propTypes = {
43999
44000
  children: s.node
44000
44001
  // Expecting column width as a string like "150px"