Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
"@babel/plugin-transform-arrow-functions",
"@babel/plugin-transform-flow-strip-types"
]
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ pom.xml.asc
src-cljs/eventum-ui-components
target
test/node_modules
storybook-static
9 changes: 9 additions & 0 deletions .storybook/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"presets": [
"next/babel"
],
"plugins": [
"@babel/plugin-transform-arrow-functions",
"@babel/plugin-transform-flow-strip-types"
]
}
11 changes: 11 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials"
],
"framework": "@storybook/react"
}
9 changes: 9 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
}
22 changes: 22 additions & 0 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const path = require('path');

module.exports = {
module: {
rules: [
{
test: /\.(jsx?|css)$/,
exclude: /node_modules/,
loader: 'babel-loader',
},
{
test: /\.css$/,
include: path.resolve(__dirname, '../'),
use: [
{
loader: require('styled-jsx/webpack').loader,
},
],
},
],
},
};
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

```sh
yarn
yarn dev
yarn storybook
```
Go to: http://localhost:3000
Go to: http://localhost:6006


## Use as npm package
Expand Down
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const withImages = require('next-images')

module.exports = withImages();

35 changes: 24 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,25 @@
"name": "eventum-ui-components",
"description": "Eventum React based UI components",
"main": "./src/index.js",
"version": "4.6.7",
"version": "5.0.0",
Comment thread
spariev marked this conversation as resolved.
"scripts": {
"build": "babel src/ -d dist/",
"lint": "eslint src",
"flow": "flow",
"dev": "next"
"dev": "next",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depends on "next", should be removed I assume.

"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook"
},
"dependencies": {
"dateformat": "^3.0.3",
"is-touch-device": "^1.0.1",
"lodash": "^4.17.11",
"next": "^12.1.5",
"next-images": "^1.8.4",
"react": "^16.5.0",
"react-dom": "^16.5.0",
"react-responsive": "^6.0.1"
"react-responsive": "^6.0.1",
"storybook-addon-state": "^1.0.3"
},
"peerDependencies": {
"react": "^16.5.0",
Expand All @@ -26,19 +31,27 @@
"@babel/core": "^7.1.0",
"@babel/plugin-transform-arrow-functions": "^7.0.0",
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
"babel-eslint": "^9.0.0",
"@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"@babel/runtime-corejs2": "^7.17.2",
"@storybook/addon-actions": "^6.4.22",
"@storybook/addon-essentials": "^6.4.22",
"@storybook/addon-links": "^6.4.22",
"@storybook/react": "^6.4.22",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.0.2",
"eslint": "^5.6.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-plugin-flowtype": "^2.50.1",
"babel-plugin-react-require": "^3.1.3",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"eslint": "^8.13.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-react": "^7.11.1",
"externs-generator": "^0.3.3",
"flow-bin": "^0.81.0",
"next": "^7.0.0",
"next-images": "^1.0.4",
"url-loader": "^1.1.1",
"flow-bin": "^0.176.2",
"styled-jsx": "^5.0.0",
"url-loader": "^4.1.1",
"webpack": "3.0.0"
},
"license": "UNLICENSED",
Expand Down
Loading