@mhome/ui 0.1.2 → 0.1.5

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.
@@ -46,7 +46,7 @@ const typographyVariants = cva("", {
46
46
 
47
47
  const Typography = React.forwardRef(
48
48
  (
49
- { className, variant = "body1", component, style, color, ...props },
49
+ { className, variant = "body1", component, style, color, noWrap, ...props },
50
50
  ref
51
51
  ) => {
52
52
  // Map MUI color props to shadcn colors
@@ -66,7 +66,10 @@ const Typography = React.forwardRef(
66
66
  typographyVariants({ variant, color: mappedColor }),
67
67
  className
68
68
  )}
69
- style={style}
69
+ style={{
70
+ ...(noWrap && { whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis" }),
71
+ ...style,
72
+ }}
70
73
  {...props}
71
74
  />
72
75
  );