@movable/ui 2.13.6 → 2.13.7

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/lib/index.mjs CHANGED
@@ -3960,20 +3960,25 @@ function Qm({ maxWidth: e = 200, chipProps: t, size: r = "small", expandOnHover:
3960
3960
  }
3961
3961
  return t.label;
3962
3962
  })(), T = Lc(us, {
3963
- shouldForwardProp: (w) => w !== "isHovered" && w !== "expandOnHover" && w !== "maxWidth"
3964
- })(({ isHovered: w, expandOnHover: O, maxWidth: C, truncation: x }) => ({
3963
+ shouldForwardProp: (w) => w !== "isHovered" && w !== "expandOnHover" && w !== "hasDeleteIcon" && w !== "maxWidth"
3964
+ })(({ isHovered: w, expandOnHover: O, maxWidth: C, truncation: x, hasDeleteIcon: P }) => ({
3965
3965
  transition: "max-width 0.3s ease",
3966
3966
  maxWidth: C === null ? "none" : O && w ? `${d}px` : `${C}px`,
3967
3967
  overflow: "hidden",
3968
3968
  textOverflow: "clip",
3969
3969
  whiteSpace: "nowrap",
3970
+ ".MuiChip-deleteIcon": {
3971
+ marginLeft: "1px",
3972
+ marginRight: "6px"
3973
+ },
3970
3974
  ".MuiChip-label": {
3971
3975
  overflow: "hidden",
3972
3976
  textOverflow: x === "middle" ? "clip" : "ellipsis",
3973
- whiteSpace: "nowrap"
3977
+ whiteSpace: "nowrap",
3978
+ marginLeft: P ? "1px" : 0
3974
3979
  }
3975
3980
  }));
3976
- return f.jsx(f.Fragment, { children: h ? f.jsx(Ns, { "data-test-chip-tooltip": t.label, title: t.label, slotProps: {
3981
+ return f.jsx(f.Fragment, { children: f.jsx(T, { "data-test-chip": t.label, ref: s, size: r, onMouseEnter: () => u(!0), onMouseLeave: () => u(!1), isHovered: c, expandOnHover: o, maxWidth: e, truncation: i, hasDeleteIcon: !!t.onDelete, ...t, label: h ? f.jsx(Ns, { "data-test-chip-tooltip": t.label, title: t.label, slotProps: {
3977
3982
  popper: {
3978
3983
  modifiers: [
3979
3984
  {
@@ -3984,7 +3989,7 @@ function Qm({ maxWidth: e = 200, chipProps: t, size: r = "small", expandOnHover:
3984
3989
  }
3985
3990
  ]
3986
3991
  }
3987
- }, children: f.jsx(T, { "data-test-chip": t.label, ref: s, size: r, onMouseEnter: () => u(!0), onMouseLeave: () => u(!1), isHovered: c, expandOnHover: o, maxWidth: e, truncation: i, ...t, label: b }) }) : f.jsx(T, { "data-test-chip": t.label, ref: s, size: r, onMouseEnter: () => u(!0), onMouseLeave: () => u(!1), isHovered: c, expandOnHover: o, maxWidth: e, truncation: i, ...t, label: b }) });
3992
+ }, children: f.jsx("span", { children: b }) }) : b }) });
3988
3993
  }
3989
3994
  const eh = {
3990
3995
  "&:hover": {