@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.d.mts CHANGED
@@ -231,6 +231,7 @@ interface TypographyProps extends TextProps {
231
231
  color?: colorTypes | (string & {});
232
232
  style?: StyleProp<TextStyle | ViewStyle>;
233
233
  textCase?: "capitalize" | "uppercase" | "lowercase" | undefined;
234
+ lineHeight?: number;
234
235
  variant?: "caption" | "body1" | "body2" | "h6" | "h5" | "h4" | "h3" | "h2" | "h1";
235
236
  align?: "center" | "left" | "right";
236
237
  gutterBottom?: number;
package/dist/index.d.ts CHANGED
@@ -231,6 +231,7 @@ interface TypographyProps extends TextProps {
231
231
  color?: colorTypes | (string & {});
232
232
  style?: StyleProp<TextStyle | ViewStyle>;
233
233
  textCase?: "capitalize" | "uppercase" | "lowercase" | undefined;
234
+ lineHeight?: number;
234
235
  variant?: "caption" | "body1" | "body2" | "h6" | "h5" | "h4" | "h3" | "h2" | "h1";
235
236
  align?: "center" | "left" | "right";
236
237
  gutterBottom?: number;
package/dist/index.js CHANGED
@@ -299,6 +299,7 @@ var Typography = (0, import_react.forwardRef)(
299
299
  fontFamily,
300
300
  // NEW PROP ADDED
301
301
  fontSize,
302
+ lineHeight,
302
303
  ...props
303
304
  }, ref) => {
304
305
  const colors2 = useColors();
@@ -306,9 +307,10 @@ var Typography = (0, import_react.forwardRef)(
306
307
  const customFontSizes = config2.TYPOGRAPHY?.fontSizes;
307
308
  const baseFontSize = customFontSizes?.[variant] ?? DEFAULT_FONT_SIZES[variant];
308
309
  const f = fontSize || baseFontSize;
310
+ const lh = lineHeight || f * 1.2;
309
311
  const styles = import_react_native.StyleSheet.create({
310
312
  text: {
311
- lineHeight: f * 1.2,
313
+ lineHeight: lh,
312
314
  fontSize: f,
313
315
  marginBottom: (0, import_react_native_size_matters.ms)(gutterBottom) || 0,
314
316
  color: colors2[color]?.main || color,