@hoddy-ui/next 2.5.68 → 2.5.69

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.mjs CHANGED
@@ -236,6 +236,7 @@ var Typography = forwardRef(
236
236
  fontFamily,
237
237
  // NEW PROP ADDED
238
238
  fontSize,
239
+ lineHeight,
239
240
  ...props
240
241
  }, ref) => {
241
242
  const colors2 = useColors();
@@ -243,9 +244,10 @@ var Typography = forwardRef(
243
244
  const customFontSizes = config2.TYPOGRAPHY?.fontSizes;
244
245
  const baseFontSize = customFontSizes?.[variant] ?? DEFAULT_FONT_SIZES[variant];
245
246
  const f = fontSize || baseFontSize;
247
+ const lh = lineHeight || f * 1.2;
246
248
  const styles = StyleSheet.create({
247
249
  text: {
248
- lineHeight: f * 1.2,
250
+ lineHeight: lh,
249
251
  fontSize: f,
250
252
  marginBottom: ms(gutterBottom) || 0,
251
253
  color: colors2[color]?.main || color,