@npm_leadtech/legal-lib-components 0.3.43 → 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.43",
3
+ "version": "0.3.44",
4
4
  "dependencies": {
5
5
  "react": "^17.0.1",
6
6
  "react-dom": "^17.0.1"
package/.huskyrc DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "hooks": {
3
- "pre-commit": "eslint \"**/*.{js,jsx}\""
4
- }
5
- }
@@ -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 };