Skip to content

Commit

Permalink
remove styled from dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kseniya57 committed Jan 11, 2021
1 parent a8b6bd8 commit 4b8b201
Show file tree
Hide file tree
Showing 5 changed files with 835 additions and 822 deletions.
6 changes: 1 addition & 5 deletions .storybook/main.js
Expand Up @@ -12,9 +12,5 @@ module.exports = {
config.resolve = custom.resolve;
return config;
},
addons: [
'@storybook/addon-essentials',
'@storybook/addon-storysource',
'storybook-addon-react-docgen',
],
addons: ['@storybook/addon-essentials', '@storybook/addon-storysource'],
};
9 changes: 4 additions & 5 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "@idui/react-collapse",
"version": "2.0.1",
"version": "2.0.2",
"description": "React Collapse Component",
"author": "kaprisa57@gmail.com",
"license": "MIT",
Expand Down Expand Up @@ -80,7 +80,8 @@
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-test-renderer": "^16.14.0",
"storybook-addon-react-docgen": "^1.2.42",
"styled-components": "^5.2.1",
"styled-tools": "^1.7.2",
"webpack": "^5.0.0-rc.6",
"webpack-cli": "^4.0.0-rc.1"
},
Expand All @@ -90,9 +91,7 @@
"dependencies": {
"framer-motion": "^2.9.5",
"lodash": "^4.17.20",
"prop-types": "^15.7.2",
"styled-components": "^5.2.1",
"styled-tools": "^1.7.2"
"prop-types": "^15.7.2"
},
"lint-staged": {
"src/**/*.{js,jsx}": [
Expand Down
7 changes: 0 additions & 7 deletions src/components/Collapse/collapse.stories.js
@@ -1,7 +1,6 @@
import React, { Fragment, useCallback, useState } from 'react';
import styled from 'styled-components';
import _ from 'lodash';
import { withPropsTable } from 'storybook-addon-react-docgen';
import { prop } from 'styled-tools';
import Collapse from './Collapse';

Expand Down Expand Up @@ -83,12 +82,6 @@ export default {
description: 'Header className',
},
},
decorators: [withPropsTable],
parameters: {
props: {
propTablesInclude: [Collapse],
},
},
};

const Header = styled(Collapse.Header)`
Expand Down
10 changes: 1 addition & 9 deletions webpack.config.js
Expand Up @@ -8,15 +8,7 @@ module.exports = {
path: path.resolve(__dirname, 'dist'),
libraryTarget: 'umd',
},
externals: [
'react',
'react-dom',
'lodash',
'prop-types',
'styled-components',
'styled-tools',
'framer-motion',
],
externals: ['react', 'react-dom', 'lodash', 'prop-types', 'framer-motion'],
module: {
rules: [
{
Expand Down

0 comments on commit 4b8b201

Please sign in to comment.