1.12.3 • Published 5 days ago

mui-simple v1.12.3

Weekly downloads
-
License
MIT
Repository
github
Last release
5 days ago

mui-simple

customized ALL MUI COMPONENTS to make simplify the usage of mui. get a lot of features to use mui, like custom-color that you can send any color of theme color name. or more customized way to use component easier way, and less code bugs homemade.

Demo: storybook link

#####NOTE: To run storybook locally, because peer dependencies not installed in package npm install, you need to wrap this project with package.json that include this peed in there node_modules. there for, cut all git repo into the wrapper-repo directory and run npm install and run the npm run storybook in script's file: wrapper-repo/mui-simple/package.json

Install

because using peer dependencies, to avoid from install force warning, add the following file change:

// .npmrc
legacy-peer-deps=true

npm

install peer dependencies first:

$ npm install react react-dom @emotion/react @emotion/styled @mui/material @mui/icons-material

it's going to take while

$ npm install mui-simple

Using Create-React-App Launcher

if you use CRA v5+ you need to override webpack config with CRACO install craco:

$ npm install --save-dev @craco/craco

then create in the root project the file

// craco.config.js
const path = require('path');

module.exports = {
    webpack: {
        configure(webpackConfig) {
            const scopePluginIndex = webpackConfig.resolve.plugins.findIndex(
                ({ constructor }) => constructor && constructor.name === 'ModuleScopePlugin'
            );
            webpackConfig.resolve.plugins.splice(scopePluginIndex, 1);
            webpackConfig.module.rules.push({
                test: /\.m?js$/,
                resolve: { fullySpecified: false },
            });

            return webpackConfig;
        },
        alias: {            
            "@emotion/cache": path.resolve(__dirname, '..', 'node_modules/@emotion/cache'),
            "@emotion/react": path.resolve(__dirname, '..', 'node_modules/@emotion/react'),
            "@emotion/styled": path.resolve(__dirname, '..', 'node_modules/@emotion/styled'),             
            "@mui/styles": path.resolve(__dirname, '..', 'node_modules/@mui/styles'),
            "@mui/system": path.resolve(__dirname, '..', 'node_modules/@mui/system'),
            "@mui/x-date-pickers": path.resolve(__dirname, '..', 'node_modules/@mui/x-date-pickers'),
            "stylis": path.resolve(__dirname, '..', 'node_modules/stylis'),
            "stylis-plugin-rtl": path.resolve(__dirname, '..', 'node_modules/stylis-plugin-rtl'),
            '@babel': path.resolve(__dirname, '..', 'node_modules/@babel'),
            '@mui/icons-material': path.resolve(__dirname, '..', 'node_modules/@mui/icons-material'),
            '@mui/material': path.resolve(__dirname, '..', 'node_modules/@mui/material'),
            '@mui/utils': path.resolve(__dirname, '..', 'node_modules/@mui/utils'),
            'react': path.resolve(__dirname, '..', 'node_modules/react'),
            'react-beautiful-dnd': path.resolve(__dirname, '..', 'node_modules/react-beautiful-dnd'),
            'react-dom': path.resolve(__dirname, '..', 'node_modules/react-dom'),
            'react-draggable': path.resolve(__dirname, '..', 'node_modules/react-draggable'),
            'react-inlinesvg': path.resolve(__dirname, '..', 'node_modules/react-inlinesvg'),
            'react-router-dom': path.resolve(__dirname, '..', 'node_modules/react-router-dom'),
        },
    },
};

Using Webpack Launcher

if you use webpack v5+ you need to override webpack config

// webpack.config.js
const path = require('path');

module.exports = {
    module: {
        rules: [
            {
                test: /\.m?js$/,
                resolve: { fullySpecified: false },
                // exclude: ['node_module'], // DON'T put node_module in exclude here!!
            },
        ],
    },
    resolve: {
        extensions: ['*', '.js', '.jsx', '.ts', '.tsx'],
        alias: {
            "@emotion/cache": path.resolve(__dirname, '..', 'node_modules/@emotion/cache'),
            "@emotion/react": path.resolve(__dirname, '..', 'node_modules/@emotion/react'),
            "@emotion/styled": path.resolve(__dirname, '..', 'node_modules/@emotion/styled'),             
            "@mui/styles": path.resolve(__dirname, '..', 'node_modules/@mui/styles'),
            "@mui/system": path.resolve(__dirname, '..', 'node_modules/@mui/system'),
            "@mui/x-date-pickers": path.resolve(__dirname, '..', 'node_modules/@mui/x-date-pickers'),
            "stylis": path.resolve(__dirname, '..', 'node_modules/stylis'),
            "stylis-plugin-rtl": path.resolve(__dirname, '..', 'node_modules/stylis-plugin-rtl'),
            '@babel': path.resolve(__dirname, '..', 'node_modules/@babel'),
            '@mui/icons-material': path.resolve(__dirname, '..', 'node_modules/@mui/icons-material'),
            '@mui/material': path.resolve(__dirname, '..', 'node_modules/@mui/material'),
            '@mui/utils': path.resolve(__dirname, '..', 'node_modules/@mui/utils'),
            'react': path.resolve(__dirname, '..', 'node_modules/react'),
            'react-beautiful-dnd': path.resolve(__dirname, '..', 'node_modules/react-beautiful-dnd'),
            'react-dom': path.resolve(__dirname, '..', 'node_modules/react-dom'),
            'react-draggable': path.resolve(__dirname, '..', 'node_modules/react-draggable'),
            'react-inlinesvg': path.resolve(__dirname, '..', 'node_modules/react-inlinesvg'),
            'react-router-dom': path.resolve(__dirname, '..', 'node_modules/react-router-dom'),
        },
    },
};

Usage

import your components with ES Module syntax, usage like this:

import { Button } from '@hdriel/mui-simple';

export const App = () => {
    return <Button>Hello Miu-Simple</Button>;
};

Join and Support

this package need more maintenance like : fully support typescript. make docs and fixing stories in storybook. Improving infrastructure and performance. and so on..

so feel free to be in touch and make this beautiful package to be more awesome as should be!

Author

:octocat: Hadriel Benjo

1.12.3

5 days ago

1.12.2

5 days ago

1.12.1

5 days ago

1.12.0

5 days ago

1.11.15

1 month ago

1.11.14

3 months ago

1.11.13

3 months ago

1.11.12

3 months ago

1.11.11

3 months ago

1.11.10

4 months ago

1.11.8

4 months ago

1.11.9

4 months ago

1.11.7

4 months ago

1.11.4

4 months ago

1.11.5

4 months ago

1.11.3

4 months ago

1.11.2

4 months ago

1.11.1

4 months ago

1.11.0

4 months ago

1.10.5

4 months ago

1.10.4

4 months ago

1.10.6

4 months ago

1.10.2

4 months ago

1.10.1

4 months ago

1.10.0

4 months ago

1.9.11

5 months ago

1.7.17

8 months ago

1.7.18

8 months ago

1.7.19

8 months ago

1.9.10

5 months ago

1.7.20

8 months ago

1.7.21

7 months ago

1.7.22

7 months ago

1.7.23

7 months ago

1.7.24

7 months ago

1.7.25

7 months ago

1.7.26

7 months ago

1.7.27

7 months ago

1.7.28

7 months ago

1.7.29

7 months ago

1.9.1

5 months ago

1.9.0

5 months ago

1.8.2

7 months ago

1.8.1

7 months ago

1.8.0

7 months ago

1.9.9

5 months ago

1.9.8

5 months ago

1.9.7

5 months ago

1.9.6

5 months ago

1.9.5

5 months ago

1.9.4

5 months ago

1.9.3

5 months ago

1.9.2

5 months ago

1.7.30

7 months ago

1.7.31

7 months ago

1.7.32

7 months ago

1.7.33

7 months ago

1.7.34

7 months ago

1.7.35

7 months ago

1.7.36

7 months ago

1.7.37

7 months ago

1.7.38

7 months ago

1.7.39

7 months ago

1.8.5

7 months ago

1.8.4

7 months ago

1.8.3

7 months ago

1.7.14

8 months ago

1.7.15

8 months ago

1.7.16

8 months ago

1.7.13

8 months ago

1.7.10

9 months ago

1.7.9

9 months ago

1.7.8

9 months ago

1.7.7

9 months ago

1.7.6

9 months ago

1.7.5

9 months ago

1.7.4

9 months ago

1.7.3

9 months ago

1.7.2

9 months ago

1.7.1

9 months ago

1.7.0

9 months ago

1.6.17

9 months ago

1.6.16

9 months ago

1.6.15

9 months ago

1.6.14

9 months ago

1.6.12

9 months ago

1.6.11

9 months ago

1.6.10

9 months ago

1.6.9

9 months ago

1.6.8

9 months ago

1.6.7

9 months ago

1.6.6

9 months ago

1.6.5

9 months ago

1.6.4

9 months ago

1.6.3

9 months ago

1.6.2

9 months ago

1.6.1

9 months ago

1.6.0

9 months ago

1.5.3

9 months ago

1.5.2

9 months ago

1.5.1

9 months ago

1.5.0

9 months ago

1.4.6

9 months ago

1.4.5

9 months ago

1.4.4

9 months ago

1.4.3

9 months ago

1.4.2

9 months ago

1.4.1

10 months ago

1.4.0

10 months ago

1.3.35

10 months ago

1.3.34

10 months ago

1.3.33

10 months ago

1.3.32

10 months ago

1.3.31

10 months ago

1.3.30

10 months ago

1.3.29

10 months ago

1.3.28

10 months ago

1.3.27

10 months ago

1.3.26

10 months ago

1.3.25

10 months ago

1.3.24

10 months ago

1.3.21

10 months ago

1.3.20

10 months ago

1.3.19

10 months ago

1.3.17

10 months ago

1.3.16

10 months ago

1.3.15

10 months ago

1.3.14

10 months ago

1.3.13

10 months ago

1.3.12

10 months ago

1.3.11

10 months ago

1.3.10

10 months ago

1.3.9

10 months ago

1.3.8

10 months ago

1.3.7

10 months ago

1.3.6

10 months ago

1.3.5

10 months ago

1.3.4

10 months ago

1.3.3

10 months ago

1.3.2

10 months ago

1.3.1

10 months ago

1.3.0

10 months ago

1.2.36

10 months ago

1.2.35

10 months ago

1.2.34

10 months ago

1.2.33

10 months ago

1.2.32

10 months ago

1.2.31

10 months ago

1.2.30

10 months ago

1.2.29

10 months ago

1.2.28

10 months ago

1.2.27

10 months ago

1.2.26

10 months ago

1.2.25

10 months ago

1.2.24

10 months ago

1.2.23

10 months ago

1.2.22

10 months ago

1.2.21

10 months ago

1.2.20

10 months ago

1.2.19

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago