@campxdev/shared 1.8.15 → 1.8.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/shared",
3
- "version": "1.8.15",
3
+ "version": "1.8.16",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -1,5 +1,5 @@
1
1
  import { alpha, darken, lighten } from '@mui/material'
2
- import { createTheme } from '@mui/material/styles'
2
+ import { ThemeOptions, createTheme } from '@mui/material/styles'
3
3
  import { customCssBaseline } from './customCssBaseline'
4
4
 
5
5
  const borderRadius = {
@@ -94,8 +94,7 @@ const borders = {
94
94
  grayLight: `1px solid ${themeColors.secondaryLight}`,
95
95
  }
96
96
 
97
- // A custom theme for this app
98
- const muiTheme = createTheme({
97
+ const themeOptions = {
99
98
  typography: {
100
99
  fontFamily: ['Poppins', 'Avenir', 'sans-serif'].join(','),
101
100
  },
@@ -590,6 +589,9 @@ const muiTheme = createTheme({
590
589
  styleOverrides: customCssBaseline,
591
590
  },
592
591
  },
593
- })
592
+ }
593
+
594
+ // A custom theme for this app
595
+ const muiTheme = createTheme({ ...themeOptions })
594
596
 
595
597
  export default muiTheme
@@ -70,6 +70,8 @@ declare module '@mui/material/styles' {
70
70
  disabled?: string
71
71
  }
72
72
  }
73
+ components?: Components<Omit<Theme, 'components'>>
74
+ typography?: TypographyOptions | ((palette: Palette) => TypographyOptions)
73
75
  }
74
76
  export function createTheme(options?: CustomThemeOptions): CustomTheme
75
77
  }
package/tsconfig.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
- "compilerOptions": {
3
- "target": "ES5",
4
- "lib": ["dom", "dom.iterable", "esnext"],
5
- "allowJs": true,
6
- "skipLibCheck": true,
7
- "esModuleInterop": true,
8
- "allowSyntheticDefaultImports": true,
9
- "strict": false,
10
- "forceConsistentCasingInFileNames": true,
11
- "noFallthroughCasesInSwitch": true,
12
- "module": "ESNext",
13
- "moduleResolution": "node",
14
- "resolveJsonModule": true,
15
- "isolatedModules": true,
16
- "noEmit": true,
17
- "jsx": "react-jsx",
18
- "types": ["node"]
19
- },
20
- "include": ["src"]
2
+ "compilerOptions": {
3
+ "target": "ES5",
4
+ "lib": ["dom", "dom.iterable", "esnext"],
5
+ "allowJs": true,
6
+ "skipLibCheck": true,
7
+ "esModuleInterop": true,
8
+ "allowSyntheticDefaultImports": true,
9
+ "strict": false,
10
+ "forceConsistentCasingInFileNames": true,
11
+ "noFallthroughCasesInSwitch": true,
12
+ "module": "ESNext",
13
+ "moduleResolution": "node",
14
+ "resolveJsonModule": true,
15
+ "isolatedModules": true,
16
+ "noEmit": true,
17
+ "jsx": "react-jsx",
18
+ "types": ["node"]
19
+ },
20
+ "include": ["src"]
21
21
  }