@npm_leadtech/legal-lib-components 0.3.39 → 0.3.40
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/.babelrc +12 -0
- package/.eslintignore +1 -0
- package/.eslintrc +31 -0
- package/.huskyrc +5 -0
- package/.prettierignore +1 -0
- package/.prettierrc +19 -0
- package/.storybook/main.js +15 -0
- package/.storybook/preview.js +3 -0
- package/build/index.css +5 -0
- package/build/index.css.map +1 -0
- package/build/index.js +3494 -1
- package/build/index.js.map +1 -1
- package/package.json +9 -11
- package/rollup.config.js +50 -0
- package/src/components/atoms/Button/Button.js +9 -0
- package/src/components/atoms/Button/Button.scss +4 -0
- package/src/components/atoms/Button/__stories__/Button.stories.js +20 -0
- package/src/components/atoms/Button/__tests__/Button.test.js +10 -0
- package/src/index.js +3 -0
- package/build/index.es.js +0 -4
- package/build/index.es.js.map +0 -1
package/.babelrc
ADDED
package/.eslintignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
build/
|
package/.eslintrc
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": [
|
|
3
|
+
"plugin:react/recommended",
|
|
4
|
+
"plugin:react-hooks/recommended",
|
|
5
|
+
"prettier",
|
|
6
|
+
"plugin:prettier/recommended",
|
|
7
|
+
"eslint-config-prettier"
|
|
8
|
+
],
|
|
9
|
+
"plugins": ["eslint-plugin-prettier"],
|
|
10
|
+
"rules": {
|
|
11
|
+
"prettier/prettier": "error",
|
|
12
|
+
"react/prop-types": "warn",
|
|
13
|
+
"no-unused-vars": "warn",
|
|
14
|
+
"no-useless-escape": "warn",
|
|
15
|
+
"no-control-regex": "warn",
|
|
16
|
+
"react/jsx-no-undef": "warn",
|
|
17
|
+
"react-hooks/exhaustive-deps": "warn",
|
|
18
|
+
"react-hooks/rules-of-hooks": "warn"
|
|
19
|
+
},
|
|
20
|
+
"parser": "babel-eslint",
|
|
21
|
+
"env": {
|
|
22
|
+
"browser": true,
|
|
23
|
+
"es6": true
|
|
24
|
+
},
|
|
25
|
+
"settings": {
|
|
26
|
+
"react": {
|
|
27
|
+
"version": "detect"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
package/.huskyrc
ADDED
package/.prettierignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
build/
|
package/.prettierrc
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"endOfLine": "lf",
|
|
3
|
+
"bracketSpacing": true,
|
|
4
|
+
"embeddedLanguageFormatting": "auto",
|
|
5
|
+
"htmlWhitespaceSensitivity": "css",
|
|
6
|
+
"insertPragma": false,
|
|
7
|
+
"jsxBracketSameLine": false,
|
|
8
|
+
"proseWrap": "preserve",
|
|
9
|
+
"quoteProps": "as-needed",
|
|
10
|
+
"requirePragma": false,
|
|
11
|
+
"semi": true,
|
|
12
|
+
"singleQuote": true,
|
|
13
|
+
"tabWidth": 2,
|
|
14
|
+
"trailingComma": "es5",
|
|
15
|
+
"useTabs": false,
|
|
16
|
+
"printWidth": 120,
|
|
17
|
+
"arrowParens": "always",
|
|
18
|
+
"jsxSingleQuote": true
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
stories: ['../src/components/**/**/*.stories.js'],
|
|
5
|
+
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
|
|
6
|
+
webpackFinal: async (config, { configType }) => {
|
|
7
|
+
config.module.rules.push({
|
|
8
|
+
test: /\.scss$/,
|
|
9
|
+
use: ['style-loader', 'css-loader', 'sass-loader'],
|
|
10
|
+
include: path.resolve(__dirname, '../src'),
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
return config;
|
|
14
|
+
},
|
|
15
|
+
};
|
package/build/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["Button.scss"],"names":[],"mappings":"AAAA;EACE,sBAAsB;EACtB,YAAY,EAAE","file":"index.css","sourcesContent":[".primary {\n background-color: blue;\n color: white; }\n"]}
|