@m4l/components 9.3.12-BE270825-beta.1 → 9.3.12-BE270825-beta.2

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.
@@ -18,6 +18,7 @@ function Typography(props) {
18
18
  children,
19
19
  disabled,
20
20
  ellipsis = false,
21
+ fontFamily = "inter",
21
22
  ...other
22
23
  } = props;
23
24
  const isSkeleton = useModuleSkeleton();
@@ -30,7 +31,8 @@ function Typography(props) {
30
31
  skeletonRows,
31
32
  variant,
32
33
  skeleton: isSkeleton,
33
- ellipsis
34
+ ellipsis,
35
+ fontFamily
34
36
  };
35
37
  return /* @__PURE__ */ jsx(
36
38
  StyledMUITypography,
@@ -47,6 +47,10 @@ export interface TypographyProps extends Omit<MUITypographyProps, 'color' | 'var
47
47
  * Si se activa, el texto se corta y se muestra un elipsis.
48
48
  */
49
49
  ellipsis?: boolean;
50
+ /**
51
+ * Familia de fuentes a usar para el componente.
52
+ */
53
+ fontFamily?: 'inter' | 'jura';
50
54
  }
51
55
  /**
52
56
  * Define valores de estado necesarios para estilar el componente.
@@ -59,6 +63,7 @@ export interface TypographyOwnerState {
59
63
  skeletonRows: TypographyProps['skeletonRows'];
60
64
  skeleton: boolean;
61
65
  ellipsis: TypographyProps['ellipsis'];
66
+ fontFamily: TypographyProps['fontFamily'];
62
67
  }
63
68
  /**
64
69
  * Agrupa la lista de slots del componente.
@@ -8,6 +8,7 @@ const typographyStyles = {
8
8
  root: ({ ownerState, theme }) => ({
9
9
  margin: 0,
10
10
  cursor: "default",
11
+ fontFamily: ownerState?.fontFamily === "jura" ? "Jura" : "Inter",
11
12
  "&.M4lclassCssSpecificity": {
12
13
  // Estilos generales 🌐
13
14
  // skeleton spacing when multiple rows ðŸĶī
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.3.12-BE270825-beta.1",
3
+ "version": "9.3.12-BE270825-beta.2",
4
4
  "license": "UNLICENSED",
5
5
  "description": "M4L Components",
6
6
  "lint-staged": {