@zesty-io/material 0.0.0 → 0.0.1-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.
package/package.json CHANGED
@@ -1,21 +1,32 @@
1
1
  {
2
2
  "name": "@zesty-io/material",
3
- "version": "0.0.0",
3
+ "version": "0.0.1-0",
4
4
  "description": "Contains custom components which are in addition to the @mui design-system",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1",
8
- "release": "npm publish --access public",
9
- "release:alpha": "npm publish --access public --tag alpha"
10
- },
5
+ "author": "Zesty.io",
6
+ "license": "MIT",
11
7
  "repository": {
12
8
  "type": "git",
13
9
  "url": "git+https://github.com/zesty-io/material.git"
14
10
  },
15
- "author": "",
16
- "license": "ISC",
17
11
  "bugs": {
18
12
  "url": "https://github.com/zesty-io/material/issues"
19
13
  },
20
- "homepage": "https://github.com/zesty-io/material#readme"
14
+ "homepage": "https://github.com/zesty-io/material#readme",
15
+ "main": "es/index.js",
16
+ "module": "es/index.js",
17
+ "types": "es/index.d.ts",
18
+ "scripts": {
19
+ "build": "tsc",
20
+ "release": "npm publish --access public",
21
+ "release:alpha": "npm publish --access public --tag alpha"
22
+ },
23
+ "dependencies": {
24
+ "@emotion/react": "^11.9.0",
25
+ "@emotion/styled": "^11.8.1",
26
+ "@mui/icons-material": "^5.6.2",
27
+ "@mui/material": "^5.6.4"
28
+ },
29
+ "devDependencies": {
30
+ "typescript": "^4.6.3"
31
+ }
21
32
  }
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export { default as theme } from './theme';
@@ -0,0 +1,10 @@
1
+ import palette from './palette';
2
+ import typography from './typography';
3
+ import { createTheme, Theme } from '@mui/material/styles';
4
+
5
+ const theme: Theme = createTheme({
6
+ palette,
7
+ typography,
8
+ });
9
+
10
+ export default theme;
@@ -0,0 +1,38 @@
1
+ import { PaletteOptions } from '@mui/material/styles';
2
+ const palette: PaletteOptions = {
3
+ primary: {
4
+ main: '#404759',
5
+ contrastText: '#ffffff',
6
+ },
7
+ secondary: {
8
+ main: '#497edf',
9
+ contrastText: '#ffffff',
10
+ },
11
+ success: {
12
+ main: '#75bf25',
13
+ contrastText: '#ffffff',
14
+ },
15
+ warning: {
16
+ main: '#f17829',
17
+ contrastText: '#ffffff',
18
+ },
19
+ error: {
20
+ main: '#e53c05',
21
+ contrastText: '#ffffff',
22
+ },
23
+ // action: {
24
+ // active: 'rgba(0,0,0,54)',
25
+ // hover: 'rgba(0,0,0,0.04)',
26
+ // hoverOpacity: 0.04,
27
+ // selected: 'rgba(0,0,0,0.08)',
28
+ // selectedOpacity: 0.08,
29
+ // disabled: 'rgba(26, 32, 44, 0.4)',
30
+ // disabledBackground: 'rgba(26, 32, 44, 0.12)',
31
+ // disabledOpacity: 0.4,
32
+ // focus: 'rgba(0,0,0,0.12)',
33
+ // focusOpacity: 0.12,
34
+ // activatedOpacity: 0.12,
35
+ // },
36
+ };
37
+
38
+ export default palette;
@@ -0,0 +1,7 @@
1
+ import { TypographyVariantsOptions } from '@mui/material/styles';
2
+
3
+ const typography: TypographyVariantsOptions = {
4
+ fontFamily: "'Mulish'",
5
+ };
6
+
7
+ export default typography;
package/tsconfig.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "compilerOptions": {
3
+ "outDir": "es",
4
+ "target": "ESNext",
5
+ "useDefineForClassFields": true,
6
+ "lib": ["DOM", "DOM.Iterable", "ESNext"],
7
+ "allowJs": false,
8
+ "skipLibCheck": true,
9
+ "esModuleInterop": false,
10
+ "allowSyntheticDefaultImports": true,
11
+ "strict": true,
12
+ "forceConsistentCasingInFileNames": true,
13
+ "module": "ESNext",
14
+ "moduleResolution": "Node",
15
+ "resolveJsonModule": true,
16
+ "isolatedModules": true,
17
+ "noEmit": false,
18
+ "declaration": true,
19
+ "jsx": "react-jsx",
20
+ },
21
+ "include": ["src"],
22
+ }