@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?: "headingLarge" | "headingMedium" | "headingSmall" | "bodyText" | "smallText" | "boldText" | "subtitleNormal" | "subtitleSmall" | "helperText";
10
+ type?: keyof typeof fontCustomizations;
10
11
  textColor?: CustomColors;
11
12
  }
12
13
  /**
@@ -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: string;
5
+ fontSize: {
6
+ sm: string;
7
+ md: string;
8
+ };
6
9
  };
7
10
  headingMedium: {
8
11
  fontWeight: string;
9
- fontSize: string;
12
+ fontSize: {
13
+ sm: string;
14
+ md: string;
15
+ };
10
16
  };
11
17
  headingSmall: {
12
18
  fontWeight: string;
13
- fontSize: string;
19
+ fontSize: {
20
+ sm: string;
21
+ md: string;
22
+ };
14
23
  };
15
24
  bodyText: {
16
25
  fontWeight: string;
17
- fontSize: string;
18
- };
19
- smallText: {
20
- fontSize: string;
26
+ fontSize: {
27
+ sm: string;
28
+ md: string;
29
+ };
21
30
  };
22
31
  boldText: {
23
32
  fontWeight: string;
24
- fontSize: string;
33
+ fontSize: {
34
+ sm: string;
35
+ md: string;
36
+ };
25
37
  };
26
38
  subtitleNormal: {
27
- fontSize: string;
39
+ fontSize: {
40
+ sm: string;
41
+ md: string;
42
+ };
28
43
  };
29
44
  subtitleSmall: {
30
- fontSize: string;
45
+ fontSize: {
46
+ sm: string;
47
+ md: string;
48
+ };
31
49
  };
32
50
  helperText: {
33
- fontSize: string;
51
+ fontSize: {
52
+ sm: string;
53
+ md: string;
54
+ };
34
55
  };
35
56
  };
@@ -16,61 +16,77 @@ const f = {
16
16
  A400: "#ffea00",
17
17
  A700: "#ffd600"
18
18
  }, t = f;
19
- const i = e({
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
- }), a = {
34
+ }), r = {
37
35
  headingLarge: {
38
36
  fontWeight: "700",
39
- fontSize: "1.5rem"
37
+ fontSize: {
38
+ sm: "1.375rem",
39
+ md: "1.5rem"
40
+ }
40
41
  },
41
42
  headingMedium: {
42
43
  fontWeight: "700",
43
- fontSize: "1.25rem"
44
+ fontSize: {
45
+ sm: "1.125rem",
46
+ md: "1.25rem"
47
+ }
44
48
  },
45
49
  headingSmall: {
46
- fontWeight: "500",
47
- fontSize: "1rem"
50
+ fontWeight: "700",
51
+ fontSize: {
52
+ sm: "1rem",
53
+ md: "1.125rem"
54
+ }
48
55
  },
49
56
  bodyText: {
50
57
  fontWeight: "400",
51
- fontSize: "1rem"
52
- },
53
- smallText: {
54
- // fontWeight: "400",
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: "1rem"
65
+ fontSize: {
66
+ sm: "0.875rem",
67
+ md: "1rem"
68
+ }
60
69
  },
61
70
  subtitleNormal: {
62
- // fontWeight: "400",
63
- fontSize: "0.875rem"
71
+ fontSize: {
72
+ sm: "0.75rem",
73
+ md: "0.875rem"
74
+ }
64
75
  },
65
76
  subtitleSmall: {
66
- // fontWeight: "400",
67
- fontSize: "0.8125rem"
77
+ fontSize: {
78
+ sm: "0.625rem",
79
+ md: "0.75rem"
80
+ }
68
81
  },
69
82
  helperText: {
70
- fontSize: "0.5625rem"
83
+ fontSize: {
84
+ sm: "0.5rem",
85
+ md: "0.625rem"
86
+ }
71
87
  }
72
88
  };
73
89
  export {
74
- i as defaultTheme,
75
- a as fontCustomizations
90
+ n as defaultTheme,
91
+ r as fontCustomizations
76
92
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loopr-ai/craft",
3
- "version": "0.5.2",
3
+ "version": "0.6.0",
4
4
  "description": "Component library based out of Material UI customized to support Loopr AI products",
5
5
  "homepage": "https://loopr.ai",
6
6
  "author": {