@npm_leadtech/legal-lib-components 0.3.42 → 0.3.44

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": "@npm_leadtech/legal-lib-components",
3
- "version": "0.3.42",
3
+ "version": "0.3.44",
4
4
  "dependencies": {
5
5
  "react": "^17.0.1",
6
6
  "react-dom": "^17.0.1"
package/.babelrc DELETED
@@ -1,12 +0,0 @@
1
- {
2
- "presets": [
3
- "@babel/preset-react",
4
- [
5
- "@babel/preset-env", {
6
- "targets": {
7
- "esmodules": true
8
- }
9
- }
10
- ]
11
- ]
12
- }
package/.eslintignore DELETED
@@ -1 +0,0 @@
1
- build/
package/.eslintrc DELETED
@@ -1,31 +0,0 @@
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 DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "hooks": {
3
- "pre-commit": "eslint \"**/*.{js,jsx}\""
4
- }
5
- }
package/.prettierignore DELETED
@@ -1 +0,0 @@
1
- build/
package/.prettierrc DELETED
@@ -1,19 +0,0 @@
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
- }
@@ -1,15 +0,0 @@
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
- };
@@ -1,3 +0,0 @@
1
- export const parameters = {
2
- actions: { argTypesRegex: '^on[A-Z].*' },
3
- };
package/rollup.config.js DELETED
@@ -1,27 +0,0 @@
1
- import peerDepsExternal from 'rollup-plugin-peer-deps-external';
2
- import resolve from '@rollup/plugin-node-resolve';
3
- import babel from '@rollup/plugin-babel';
4
- import commonjs from '@rollup/plugin-commonjs';
5
- import postcss from 'rollup-plugin-postcss';
6
- import packageJson from './package.json';
7
-
8
- export default {
9
- input: 'src/index.js', // All of your library files will be named exports from here
10
- output: [
11
- {
12
- file: packageJson.main,
13
- format: 'cjs',
14
- sourcemap: true,
15
- },
16
- ],
17
- plugins: [
18
- peerDepsExternal(),
19
- resolve(),
20
- babel({
21
- exclude: 'node_modules/**',
22
- babelHelpers: 'bundled',
23
- }),
24
- commonjs(),
25
- postcss(),
26
- ],
27
- };
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- import './Button.scss';
4
-
5
- export const Button = ({ message = 'Hello world' }) => <button className='primary'>{message}</button>;
6
-
7
- Button.propTypes = {
8
- message: PropTypes.string,
9
- };
@@ -1,4 +0,0 @@
1
- .primary {
2
- background-color: blue;
3
- color: white;
4
- }
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
-
3
- import { Button } from '../Button';
4
-
5
- export default {
6
- component: Button,
7
- title: 'Atoms/Button',
8
- };
9
-
10
- const Template = (args) => <Button {...args} />;
11
-
12
- export const Default = Template.bind({});
13
- Default.args = {
14
- message: 'Default',
15
- };
16
-
17
- export const Secondary = Template.bind({});
18
- Secondary.args = {
19
- message: 'Secondary',
20
- };
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { cleanup, render } from '@testing-library/react';
3
- import { Button } from '../Button';
4
-
5
- afterEach(cleanup);
6
-
7
- it('render component Button with label', () => {
8
- const { getByText } = render(<Button message='Kappa' />);
9
- expect(getByText('Kappa')).toBeTruthy();
10
- });
package/src/index.js DELETED
@@ -1,3 +0,0 @@
1
- import { Button } from './components/atoms/Button/Button';
2
-
3
- export { Button };