@loopr-ai/craft 0.5.2 → 0.6.0
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.
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { TypographyProps as MuiTypographyProps } from "@mui/material/Typography";
|
|
2
2
|
import { CustomColors } from "../../../global/colors";
|
|
3
3
|
import { CraftFC } from "../../../global/interfaces";
|
|
4
|
+
import { fontCustomizations } from "../../../global/theme";
|
|
4
5
|
interface TypographyProps extends MuiTypographyProps {
|
|
5
6
|
/**
|
|
6
7
|
* The type of typography to render.
|
|
7
8
|
* @default "bodyText"
|
|
8
9
|
*/
|
|
9
|
-
type?:
|
|
10
|
+
type?: keyof typeof fontCustomizations;
|
|
10
11
|
textColor?: CustomColors;
|
|
11
12
|
}
|
|
12
13
|
/**
|
package/dist/global/theme.d.ts
CHANGED
|
@@ -2,34 +2,55 @@ export declare const defaultTheme: import("@mui/material").Theme;
|
|
|
2
2
|
export declare const fontCustomizations: {
|
|
3
3
|
headingLarge: {
|
|
4
4
|
fontWeight: string;
|
|
5
|
-
fontSize:
|
|
5
|
+
fontSize: {
|
|
6
|
+
sm: string;
|
|
7
|
+
md: string;
|
|
8
|
+
};
|
|
6
9
|
};
|
|
7
10
|
headingMedium: {
|
|
8
11
|
fontWeight: string;
|
|
9
|
-
fontSize:
|
|
12
|
+
fontSize: {
|
|
13
|
+
sm: string;
|
|
14
|
+
md: string;
|
|
15
|
+
};
|
|
10
16
|
};
|
|
11
17
|
headingSmall: {
|
|
12
18
|
fontWeight: string;
|
|
13
|
-
fontSize:
|
|
19
|
+
fontSize: {
|
|
20
|
+
sm: string;
|
|
21
|
+
md: string;
|
|
22
|
+
};
|
|
14
23
|
};
|
|
15
24
|
bodyText: {
|
|
16
25
|
fontWeight: string;
|
|
17
|
-
fontSize:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
26
|
+
fontSize: {
|
|
27
|
+
sm: string;
|
|
28
|
+
md: string;
|
|
29
|
+
};
|
|
21
30
|
};
|
|
22
31
|
boldText: {
|
|
23
32
|
fontWeight: string;
|
|
24
|
-
fontSize:
|
|
33
|
+
fontSize: {
|
|
34
|
+
sm: string;
|
|
35
|
+
md: string;
|
|
36
|
+
};
|
|
25
37
|
};
|
|
26
38
|
subtitleNormal: {
|
|
27
|
-
fontSize:
|
|
39
|
+
fontSize: {
|
|
40
|
+
sm: string;
|
|
41
|
+
md: string;
|
|
42
|
+
};
|
|
28
43
|
};
|
|
29
44
|
subtitleSmall: {
|
|
30
|
-
fontSize:
|
|
45
|
+
fontSize: {
|
|
46
|
+
sm: string;
|
|
47
|
+
md: string;
|
|
48
|
+
};
|
|
31
49
|
};
|
|
32
50
|
helperText: {
|
|
33
|
-
fontSize:
|
|
51
|
+
fontSize: {
|
|
52
|
+
sm: string;
|
|
53
|
+
md: string;
|
|
54
|
+
};
|
|
34
55
|
};
|
|
35
56
|
};
|
package/dist/global/theme.js
CHANGED
|
@@ -16,61 +16,77 @@ const f = {
|
|
|
16
16
|
A400: "#ffea00",
|
|
17
17
|
A700: "#ffd600"
|
|
18
18
|
}, t = f;
|
|
19
|
-
const
|
|
19
|
+
const n = e({
|
|
20
20
|
palette: {
|
|
21
|
+
// define other things related to the theme/color here
|
|
21
22
|
primary: {
|
|
22
23
|
main: "#3C4FE0",
|
|
23
24
|
dark: "#3F4DBA",
|
|
24
25
|
contrastText: "white"
|
|
25
26
|
},
|
|
26
27
|
secondary: {
|
|
27
|
-
// light: yellow[400],
|
|
28
28
|
main: t[500]
|
|
29
|
-
// dark: yellow[700],
|
|
30
|
-
// contrastText: '#fff'
|
|
31
29
|
}
|
|
32
30
|
},
|
|
33
31
|
typography: {
|
|
34
32
|
fontFamily: "DM Sans, sans-serif"
|
|
35
33
|
}
|
|
36
|
-
}),
|
|
34
|
+
}), r = {
|
|
37
35
|
headingLarge: {
|
|
38
36
|
fontWeight: "700",
|
|
39
|
-
fontSize:
|
|
37
|
+
fontSize: {
|
|
38
|
+
sm: "1.375rem",
|
|
39
|
+
md: "1.5rem"
|
|
40
|
+
}
|
|
40
41
|
},
|
|
41
42
|
headingMedium: {
|
|
42
43
|
fontWeight: "700",
|
|
43
|
-
fontSize:
|
|
44
|
+
fontSize: {
|
|
45
|
+
sm: "1.125rem",
|
|
46
|
+
md: "1.25rem"
|
|
47
|
+
}
|
|
44
48
|
},
|
|
45
49
|
headingSmall: {
|
|
46
|
-
fontWeight: "
|
|
47
|
-
fontSize:
|
|
50
|
+
fontWeight: "700",
|
|
51
|
+
fontSize: {
|
|
52
|
+
sm: "1rem",
|
|
53
|
+
md: "1.125rem"
|
|
54
|
+
}
|
|
48
55
|
},
|
|
49
56
|
bodyText: {
|
|
50
57
|
fontWeight: "400",
|
|
51
|
-
fontSize:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
fontSize: "0.875rem"
|
|
58
|
+
fontSize: {
|
|
59
|
+
sm: "0.875rem",
|
|
60
|
+
md: "1rem"
|
|
61
|
+
}
|
|
56
62
|
},
|
|
57
63
|
boldText: {
|
|
58
64
|
fontWeight: "700",
|
|
59
|
-
fontSize:
|
|
65
|
+
fontSize: {
|
|
66
|
+
sm: "0.875rem",
|
|
67
|
+
md: "1rem"
|
|
68
|
+
}
|
|
60
69
|
},
|
|
61
70
|
subtitleNormal: {
|
|
62
|
-
|
|
63
|
-
|
|
71
|
+
fontSize: {
|
|
72
|
+
sm: "0.75rem",
|
|
73
|
+
md: "0.875rem"
|
|
74
|
+
}
|
|
64
75
|
},
|
|
65
76
|
subtitleSmall: {
|
|
66
|
-
|
|
67
|
-
|
|
77
|
+
fontSize: {
|
|
78
|
+
sm: "0.625rem",
|
|
79
|
+
md: "0.75rem"
|
|
80
|
+
}
|
|
68
81
|
},
|
|
69
82
|
helperText: {
|
|
70
|
-
fontSize:
|
|
83
|
+
fontSize: {
|
|
84
|
+
sm: "0.5rem",
|
|
85
|
+
md: "0.625rem"
|
|
86
|
+
}
|
|
71
87
|
}
|
|
72
88
|
};
|
|
73
89
|
export {
|
|
74
|
-
|
|
75
|
-
|
|
90
|
+
n as defaultTheme,
|
|
91
|
+
r as fontCustomizations
|
|
76
92
|
};
|